Fix #1600 Can not save a deleted field in admin field app

This commit is contained in:
Nicolas Le Goff
2013-11-28 11:08:42 +01:00
parent 5504f9013a
commit afde85140f
2 changed files with 5 additions and 3 deletions

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