aboutsummaryrefslogtreecommitdiff
path: root/views/installation/forms/install/template.php
diff options
context:
space:
mode:
Diffstat (limited to 'views/installation/forms/install/template.php')
-rw-r--r--views/installation/forms/install/template.php17
1 files changed, 10 insertions, 7 deletions
diff --git a/views/installation/forms/install/template.php b/views/installation/forms/install/template.php
index 5e44d928e..7e7a668d3 100644
--- a/views/installation/forms/install/template.php
+++ b/views/installation/forms/install/template.php
@@ -30,14 +30,17 @@ $form_body .= elgg_view('input/submit', $submit_params);
echo $form_body;
?>
-<?php //@todo JS 1.8: no ?>
+
<script type="text/javascript">
- var was_submitted = false;
- function elggCheckFormSubmission() {
- if (was_submitted == false) {
- was_submitted = true;
+ //prevent double-submission
+ $(function() {
+ $('form').submit(function() {
+ if (this.data('submitted')) {
+ return false;
+ }
+
+ this.data('submitted', true);
return true;
}
- return false;
- }
+ });
</script>