aboutsummaryrefslogtreecommitdiff
path: root/install
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-05-14 21:14:17 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-05-14 21:14:17 +0000
commit48af91afaadd1617b70c43369c2d680079806da7 (patch)
tree69f62ab026d3adc35b23e04d2dc00e5167d81331 /install
parentff1edc8a348780dcde12e656304309a2bd89755c (diff)
downloadelgg-48af91afaadd1617b70c43369c2d680079806da7.tar.gz
elgg-48af91afaadd1617b70c43369c2d680079806da7.tar.bz2
fixed the double form submission code for the installer
git-svn-id: http://code.elgg.org/elgg/trunk@9083 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'install')
-rw-r--r--install/js/install.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/install/js/install.js b/install/js/install.js
new file mode 100644
index 000000000..8d36c8a65
--- /dev/null
+++ b/install/js/install.js
@@ -0,0 +1,11 @@
+
+// prevent double-submission of forms
+$(function() {
+ $('form').submit(function() {
+ if (this.data('submitted')) {
+ return false;
+ }
+ this.data('submitted', true);
+ return true;
+ });
+});