mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-10 19:43:16 +00:00
Merge pull request #667 from nlegoff/fix_1495
[3.8] Fix #1495 Remove focus when editing fields
This commit is contained in:
@@ -84,7 +84,6 @@ define([
|
||||
return this;
|
||||
},
|
||||
events: {
|
||||
"click": "focusAction",
|
||||
"click .delete-field": "deleteAction",
|
||||
"blur input#tbranch": "fieldChangedAction",
|
||||
"blur input#separator": "fieldChangedAction",
|
||||
@@ -94,14 +93,6 @@ define([
|
||||
"change select": "selectionChangedAction",
|
||||
"click .lng-label a": "_toggleLabels"
|
||||
},
|
||||
focusAction: function() {
|
||||
var index = AdminFieldApp.fieldListView.collection.indexOf(this.model);
|
||||
if (index >= 0) {
|
||||
AdminFieldApp.fieldListView.itemViews[index].animate();
|
||||
}
|
||||
|
||||
return this;
|
||||
},
|
||||
selectionChangedAction: function(e) {
|
||||
var field = $(e.target);
|
||||
var data = {};
|
||||
|
Reference in New Issue
Block a user