Skip to content

Commit

Permalink
Merge pull request #26 from dovrosenberg/master
Browse files Browse the repository at this point in the history
Possible solution to issue #25
  • Loading branch information
pahans committed Feb 23, 2015
2 parents 23102ba + ccda501 commit 97676c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/reactive-modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ ReactiveModal.initDialog = function (info){
_.extend(newButton, new EV());
info.buttons[button] = newButton;
newButton.closeModalOnClick = (info.buttons[button].closeModalOnClick === undefined || info.buttons[button].closeModalOnClick === true) ? true : false;
newButton.disabled = new ReactiveVar((info.buttons[button].disabled === undefined || info.buttons[button].disabled === false) ? false : true);
newButton.disabled = new ReactiveVar((info.buttons[button].disabled === undefined || info.buttons[button].disabled === false || (info.buttons[button].disabled instanceof ReactiveVar && info.buttons[button].disabled.curValue===false)) ? false : true);
newButton.disable = function () {newButton.disabled.set(true);},
newButton.enable = function () {newButton.disabled.set(false);}
};
Expand Down

0 comments on commit 97676c0

Please sign in to comment.