Skip to content

Commit

Permalink
MB-14576: remove attr disabled if enableSaveButton is undefined
Browse files Browse the repository at this point in the history
Change-Id: Id1ef11ef486dcb210c2bd27e48209df4d5cc930e
Reviewed-on: http://review.couchbase.org/49897
Tested-by: Pavel Blagodov <stochmail@gmail.com>
Reviewed-by: Artem Stemkovski <artem@couchbase.com>
  • Loading branch information
pavel-blagodov authored and vzasade committed Apr 20, 2015
1 parent 14d562e commit 9609c2e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion priv/public/js/replications.js
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ var ReplicationForm = mkClass({
if (status == 'success') {
self.close();
} else {
SettingsSection.renderErrors(errorObject || data, self.form, null, null, true);
SettingsSection.renderErrors(errorObject || data, self.form, undefined, undefined, true);
}
});
},
Expand Down
2 changes: 1 addition & 1 deletion priv/public/js/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ var SettingsSection = {
rootNode.find('.error-container.active').empty().removeClass('active');
rootNode.find('input.invalid').removeClass('invalid');
if ($.isEmptyObject(val.errors)) {
if (enableSaveButton) {
if (enableSaveButton === true || enableSaveButton === undefined) {
(saveButton || rootNode.find('.save_button')).removeAttr('disabled');
}
} else {
Expand Down

0 comments on commit 9609c2e

Please sign in to comment.