From cc9c4bd0421c114c77601b039f6244e68e9ef271 Mon Sep 17 00:00:00 2001 From: Juanfran Date: Mon, 16 Mar 2015 10:28:26 +0100 Subject: [PATCH] add prevent default in the save description --- app/coffee/modules/common/components.coffee | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/coffee/modules/common/components.coffee b/app/coffee/modules/common/components.coffee index 9b5ea62e..dd902037 100644 --- a/app/coffee/modules/common/components.coffee +++ b/app/coffee/modules/common/components.coffee @@ -536,7 +536,9 @@ EditableDescriptionDirective = ($rootscope, $repo, $confirm, $compile, $loading, $el.find('.view-description').hide() $el.find('textarea').focus() - $el.on "click", ".save", -> + $el.on "click", ".save", (e) -> + e.preventDefault() + description = $scope.item.description save(description)