Fixed enable hub button state after confirming dialog

HFP-502
pull/38/head
thomasmars 2017-02-23 14:22:56 +01:00
parent aa861fc8ce
commit a32f210188
1 changed files with 5 additions and 5 deletions

View File

@ -51,17 +51,17 @@
}).appendTo($(H5PDisableHubData.overlaySelector).get(0));
confirmationDialog.on('confirmed', function () {
disableButton.get(0).checked = false;
enableButton.get(0).checked = true;
});
confirmationDialog.on('canceled', function () {
disableButton.get(0).checked = true;
enableButton.get(0).checked = false;
});
var disableButton = $(H5PDisableHubData.selector);
disableButton.change(function () {
var enableButton = $(H5PDisableHubData.selector);
enableButton.change(function () {
if ($(this).is(':checked')) {
confirmationDialog.show(disableButton.offset().top);
confirmationDialog.show(enableButton.offset().top);
}
});
});