diff --git a/app/assets/javascripts/collections/field.coffee b/app/assets/javascripts/collections/field.coffee index 93bcfd0b9..800622ac4 100644 --- a/app/assets/javascripts/collections/field.coffee +++ b/app/assets/javascripts/collections/field.coffee @@ -202,12 +202,6 @@ onCollections -> window.model.initDatePicker(optionsDatePicker) window.model.initAutocomplete() - notifyEdit: (ev) => - # TODO: remove this eventually; this handler exists only to be installed - # as the mousedown handler for the field's row DIV. Otherwise, there are - # situations when clicking on the row doesn't activate the edition - undefined - keyPress: (field, event) => switch event.keyCode when 13 then @save() diff --git a/app/views/collections/index/_map.haml b/app/views/collections/index/_map.haml index 9b06cf62d..270e5ad46 100644 --- a/app/views/collections/index/_map.haml +++ b/app/views/collections/index/_map.haml @@ -204,7 +204,7 @@ /ko if: writeable /- TODO: remove the mousedown handler. Otherwise, there are /- situations when clicking on the row doesn't activate the edition - %div.site_row.writeable{ko(click: 'edit', event: {mousedown: 'notifyEdit'})} + %div.site_row.writeable{ko(click: 'edit')} %span{ko(text: :errorMessage, validationPopover: :errorMessage), style: 'display: none;'} %label.field-name{ko(text: "name + ':'", topPopover: "__('Field Code') + ': ' + code", css: { error: :error })} /ko if: hasValue() && !error()