From 9f6f080a3932b69e2d011a6afe093f098c29fca6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xavier=20Juli=C3=A1n?= Date: Fri, 20 Feb 2015 09:02:26 +0100 Subject: [PATCH] Fixed custom attribute edition template --- app/coffee/modules/common/custom-field-values.coffee | 2 -- app/partials/custom-attributes/custom-attribute-value-edit.jade | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/app/coffee/modules/common/custom-field-values.coffee b/app/coffee/modules/common/custom-field-values.coffee index 231929a9..26aabacf 100644 --- a/app/coffee/modules/common/custom-field-values.coffee +++ b/app/coffee/modules/common/custom-field-values.coffee @@ -145,7 +145,6 @@ CustomAttributeValueDirective = ($template, $selectedText) -> saveAttributeValue = -> attributeValue.value = $el.find("input").val() - $el.find('.custom-field-single').removeClass('editable') $scope.$apply -> $ctrl.updateAttributeValue(attributeValue).then -> @@ -168,7 +167,6 @@ CustomAttributeValueDirective = ($template, $selectedText) -> event.preventDefault() render(attributeValue, true) $el.find("input[name='description']").focus().select() - $el.find('.custom-field-single').addClass('editable') ## Actions (on edit mode) submit = debounce 2000, (event) => diff --git a/app/partials/custom-attributes/custom-attribute-value-edit.jade b/app/partials/custom-attributes/custom-attribute-value-edit.jade index 63fdd4b7..d3c3aabc 100644 --- a/app/partials/custom-attributes/custom-attribute-value-edit.jade +++ b/app/partials/custom-attributes/custom-attribute-value-edit.jade @@ -1,4 +1,4 @@ -form.custom-field-single +form.custom-field-single.editable div.custom-field-data label.custom-field-name(for="custom-field-description") <%- name %>