diff options
| author | Scott Ostler <scottbot9000@gmail.com> | 2011-02-13 01:05:57 -0500 |
|---|---|---|
| committer | Scott Ostler <scottbot9000@gmail.com> | 2011-02-13 01:05:57 -0500 |
| commit | 24e63afd5bf4c2e7764c2f3fd5c3a27bfcf6abad (patch) | |
| tree | cd23523e816663bd95096aae74f9ea6646991252 /static/js | |
| parent | 8d1bdb5fdbf1483d3889f88e42b39cb6a9fe431a (diff) | |
Disable mute window after initial submit
Diffstat (limited to 'static/js')
| -rw-r--r-- | static/js/admin.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/static/js/admin.js b/static/js/admin.js index fc18685..948fa99 100644 --- a/static/js/admin.js +++ b/static/js/admin.js @@ -37,6 +37,8 @@ Admin.mute = function(nick) { if (!r) { reason.addClass('ui-state-error'); } if (!t || !u || !r) { return; } + html.dialog("option", "disabled", true); + $.ajax({ type: 'POST', timeout: 5000, @@ -47,6 +49,7 @@ Admin.mute = function(nick) { success: close, error: function(s) { alert("Error muting user: " + s.responseText); + close(); } }); }; |
