From 48af91afaadd1617b70c43369c2d680079806da7 Mon Sep 17 00:00:00 2001 From: cash Date: Sat, 14 May 2011 21:14:17 +0000 Subject: fixed the double form submission code for the installer git-svn-id: http://code.elgg.org/elgg/trunk@9083 36083f99-b078-4883-b0ff-0f9b5a30f544 --- install/js/install.js | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 install/js/install.js (limited to 'install') 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; + }); +}); -- cgit v1.2.3