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;
|
return this;
|
||||||
},
|
},
|
||||||
events: {
|
events: {
|
||||||
"click": "focusAction",
|
|
||||||
"click .delete-field": "deleteAction",
|
"click .delete-field": "deleteAction",
|
||||||
"blur input#tbranch": "fieldChangedAction",
|
"blur input#tbranch": "fieldChangedAction",
|
||||||
"blur input#separator": "fieldChangedAction",
|
"blur input#separator": "fieldChangedAction",
|
||||||
@@ -94,14 +93,6 @@ define([
|
|||||||
"change select": "selectionChangedAction",
|
"change select": "selectionChangedAction",
|
||||||
"click .lng-label a": "_toggleLabels"
|
"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) {
|
selectionChangedAction: function(e) {
|
||||||
var field = $(e.target);
|
var field = $(e.target);
|
||||||
var data = {};
|
var data = {};
|
||||||
|
Reference in New Issue
Block a user