summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2010-01-22 12:16:36 -0800
committerTim Almdal <tnalmdal@shaw.ca>2010-01-22 12:16:36 -0800
commit11757831233da528662864e23d89f39bfb908801 (patch)
tree4cc76b6fe189783703e3354b7344c7f2524b69e4 /modules
parentae568b6182544b84067aa099eec494da477d083f (diff)
Disable the continue button after clicking so it can only clicked once.
Diffstat (limited to 'modules')
-rw-r--r--modules/gallery/views/admin_modules.html.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/gallery/views/admin_modules.html.php b/modules/gallery/views/admin_modules.html.php
index 704e7beb..a021d969 100644
--- a/modules/gallery/views/admin_modules.html.php
+++ b/modules/gallery/views/admin_modules.html.php
@@ -22,6 +22,9 @@
buttons: {
<?= t("Continue")->for_js() ?>: function() {
$("form", this).submit();
+ $(".ui-dialog-buttonpane button:contains(Continue)")
+ .attr("disabled", "disabled")
+ .addClass("ui-state-disabled");
},
<?= t("Cancel")->for_js() ?>: function() {
$(this).dialog("destroy").remove();