Fixed custom attribute edition template

stable
Xavier Julián 2015-02-20 09:02:26 +01:00 committed by David Barragán Merino
parent e1c0e2e7af
commit 9f6f080a39
2 changed files with 1 additions and 3 deletions

View File

@ -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) =>

View File

@ -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 %>