mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-15 14:03:27 +00:00
Merge branch '3.8'
Conflicts: CHANGELOG.md bin/developer lib/classes/module/console/systemUpgrade.php www/skins/report/jquery-ui.css
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 = {};
|
||||
|
@@ -27,6 +27,13 @@ define([
|
||||
// store all single rendered views
|
||||
this.itemViews = [];
|
||||
|
||||
// force base 1 indexed
|
||||
if (this.collection.first().get("sorter") === 0) {
|
||||
this.collection.each(function (model) {
|
||||
model.set({'sorter': model.get("sorter") + 1}, {silent: true});
|
||||
});
|
||||
}
|
||||
|
||||
// rerender whenever there is a change on the collection
|
||||
this.collection.bind("reset", this.render, this);
|
||||
this.collection.bind("add", this.render, this);
|
||||
|
Reference in New Issue
Block a user