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:
Romain Neutron
2013-12-02 18:17:38 +01:00
14 changed files with 95 additions and 28 deletions

View File

@@ -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;

View File

@@ -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 () {