Merge pull request #945 from patbolo/save-buttons-status-issue

FIX JS issue when enabling save buttons for when the content has changed...
This commit is contained in:
Sean Harvey 2014-02-18 10:24:32 +13:00
commit 311e0d0ede

View File

@ -288,9 +288,9 @@
}, },
onunmatch: function(e) { onunmatch: function(e) {
var saveButton = this.find('button[name=action_save]'); var saveButton = this.find('button[name=action_save]');
if(saveButton.data('button')) saveButton('option', 'showingAlternate', false); if(saveButton.data('button')) saveButton.button('option', 'showingAlternate', false);
var publishButton = this.find('button[name=action_publish]'); var publishButton = this.find('button[name=action_publish]');
if(publishButton.data('button')) publishButton('option', 'showingAlternate', false); if(publishButton.data('button')) publishButton.button('option', 'showingAlternate', false);
this._super(e); this._super(e);
} }
}); });