mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-14 05:23:21 +00:00
Merge branch '3.8'
Conflicts: bower.json templates/web/common/index_bootstrap.html.twig templates/web/common/menubar.html.twig templates/web/login/layout/base-layout.html.twig templates/web/prod/Baskets/Reorder.html.twig
This commit is contained in:
@@ -195,7 +195,8 @@ define([
|
||||
AdminFieldApp.fieldsToDelete.push(self.model);
|
||||
AdminFieldApp.fieldListView.collection.remove(self.model);
|
||||
self._selectModelView(index);
|
||||
AdminFieldApp.saveView.updateStateButton();
|
||||
// Enable state button, models is out of sync
|
||||
AdminFieldApp.saveView.updateStateButton(false);
|
||||
});
|
||||
|
||||
return this;
|
||||
|
@@ -84,8 +84,9 @@ define([
|
||||
|
||||
return this;
|
||||
},
|
||||
updateStateButton: function () {
|
||||
this._disableSaveButton(!this._isModelDesync());
|
||||
updateStateButton: function (disable) {
|
||||
var toDisable = disable || !this._isModelDesync();
|
||||
this._disableSaveButton(toDisable);
|
||||
},
|
||||
// check whether model has changed or not
|
||||
_isModelDesync: function () {
|
||||
|
Reference in New Issue
Block a user