aboutsummaryrefslogtreecommitdiff
path: root/install/js/install.js
diff options
context:
space:
mode:
Diffstat (limited to 'install/js/install.js')
-rw-r--r--install/js/install.js21
1 files changed, 21 insertions, 0 deletions
diff --git a/install/js/install.js b/install/js/install.js
new file mode 100644
index 000000000..49b2be10c
--- /dev/null
+++ b/install/js/install.js
@@ -0,0 +1,21 @@
+
+$(function() {
+ // prevent double-submission of forms
+ $('form').submit(function() {
+ if ($(this).data('submitted')) {
+ return false;
+ }
+ $(this).data('submitted', true);
+ return true;
+ });
+
+ // toggle the disable attribute of text box based on checkbox
+ $('.elgg-combo-checkbox').click(function() {
+ if ($(this).is(':checked')) {
+ $(this).prev().attr('disabled', true);
+ $(this).prev().val('');
+ } else {
+ $(this).prev().attr('disabled', false);
+ }
+ });
+});