diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-10-12 12:02:00 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-10-12 12:02:00 +0000 |
commit | 1a6bc7aaf9b255eb8dabcc102d4f516e050cd4c0 (patch) | |
tree | 4741f57da8e0634c9b236faa455bb2a66467eac6 /views/installation/install/forms/template.php | |
parent | fc7f5ac1455f1297de2122391c4052565bf6b591 (diff) | |
download | elgg-1a6bc7aaf9b255eb8dabcc102d4f516e050cd4c0.tar.gz elgg-1a6bc7aaf9b255eb8dabcc102d4f516e050cd4c0.tar.bz2 |
Fixes #2522 - disabling form submission after first submission
git-svn-id: http://code.elgg.org/elgg/trunk@7065 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/installation/install/forms/template.php')
-rw-r--r-- | views/installation/install/forms/template.php | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/views/installation/install/forms/template.php b/views/installation/install/forms/template.php index 98cdcadab..c3f70d768 100644 --- a/views/installation/install/forms/template.php +++ b/views/installation/install/forms/template.php @@ -22,6 +22,21 @@ foreach ($variables as $field => $params) { $form_body .= '</p>'; } -$form_body .= elgg_view('input/submit', array('value' => elgg_echo('next'))); +$submit_params = array( + 'value' => elgg_echo('next'), +); +$form_body .= elgg_view('input/submit', $submit_params); echo $form_body; + +?> +<script type="text/javascript"> + var was_submitted = false; + function elggCheckFormSubmission() { + if (was_submitted == false) { + was_submitted = true; + return true; + } + return false; + } +</script> |