All new accounts created on Gitlab now require administrator approval. If you invite any collaborators, please let Flux staff know so they can approve the accounts.

Commit a7b6dc05 authored by Leigh B Stoller's avatar Leigh B Stoller

Minor bug fix.

parent 6cf64965
......@@ -376,8 +376,12 @@ $(function ()
}
}
if (lockout) {
// So we can clear the checkbox if user cancels the modal.
var confirmed = 0;
// Bind the confirm button in the modal.
$('#disable-extension-modal .confirm-button').click(function () {
confirmed = 1;
sup.HideModal('#disable-extension-modal', function () {
var reason = $('#disable-extension-modal .reason').val();
var xmlthing = sup.CallServerMethod(null,
......@@ -393,6 +397,10 @@ $(function ()
$('#disable-extension-modal').on('hidden.bs.modal', function (e) {
$('#disable-extension-modal .confirm-button').unbind("click");
$('#disable-extension-modal').off('hidden.bs.modal');
if (!confirmed) {
// Flip the checkbox back
$('#lockout-checkbox').prop("checked", false);
}
});
sup.ShowModal("#disable-extension-modal");
return;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment