diff options
Diffstat (limited to 'views/installation')
-rw-r--r-- | views/installation/input/button.php | 2 | ||||
-rw-r--r-- | views/installation/input/form.php | 2 | ||||
-rw-r--r-- | views/installation/install/forms/admin.php | 1 | ||||
-rw-r--r-- | views/installation/install/forms/database.php | 1 | ||||
-rw-r--r-- | views/installation/install/forms/settings.php | 1 | ||||
-rw-r--r-- | views/installation/install/forms/template.php | 17 | ||||
-rw-r--r-- | views/installation/install/nav.php | 2 |
7 files changed, 22 insertions, 4 deletions
diff --git a/views/installation/input/button.php b/views/installation/input/button.php index 2c36841df..cc6a236c0 100644 --- a/views/installation/input/button.php +++ b/views/installation/input/button.php @@ -50,4 +50,4 @@ if (strpos($src,$CONFIG->wwwroot)===false) { $src = ""; } ?> -<input type="<?php echo $type; ?>" class="<?php echo $type; ?>_button" <?php echo $vars['js']; ?> value="<?php echo $value; ?>" src="<?php echo $src; ?>" class="<?php echo $class; ?>" />
\ No newline at end of file +<input type="<?php echo $type; ?>" <?php if (isset($vars['internalid'])) echo "id=\"{$vars['internalid']}\"";?> <?php echo $vars['js']; ?> value="<?php echo $value; ?>" src="<?php echo $src; ?>" class="<?php echo $class; ?>" />
\ No newline at end of file diff --git a/views/installation/input/form.php b/views/installation/input/form.php index 35e718adb..d17a913f4 100644 --- a/views/installation/input/form.php +++ b/views/installation/input/form.php @@ -47,7 +47,7 @@ if (!isset($vars['disable_security']) || $vars['disable_security'] != true) { $security_header = elgg_view('input/securitytoken'); } ?> -<form <?php if ($id) { ?>id="<?php echo $id; ?>" <?php } ?> <?php if ($name) { ?>name="<?php echo $name; ?>" <?php } ?> action="<?php echo $action; ?>" method="<?php echo $method; ?>" <?php if ($enctype!="") echo "enctype=\"$enctype\""; ?>> +<form <?php if ($id) { ?>id="<?php echo $id; ?>" <?php } ?> <?php if ($name) { ?>name="<?php echo $name; ?>" <?php } ?> action="<?php echo $action; ?>" method="<?php echo $method; ?>" <?php if ($enctype!="") echo "enctype=\"$enctype\""; ?> <?php echo $vars['js']; ?>> <?php echo $security_header; ?> <?php echo $body; ?> </form>
\ No newline at end of file diff --git a/views/installation/install/forms/admin.php b/views/installation/install/forms/admin.php index ae83cadea..cfeab190a 100644 --- a/views/installation/install/forms/admin.php +++ b/views/installation/install/forms/admin.php @@ -17,5 +17,6 @@ $params = array( 'body' => $form_body, 'action' => $url, 'disable_security' => TRUE, + 'js' => 'onsubmit="return elggCheckFormSubmission()"', ); echo elgg_view('input/form', $params); diff --git a/views/installation/install/forms/database.php b/views/installation/install/forms/database.php index a3fa8dd65..2d1d41bc9 100644 --- a/views/installation/install/forms/database.php +++ b/views/installation/install/forms/database.php @@ -16,5 +16,6 @@ $params = array( 'body' => $form_body, 'action' => $url, 'disable_security' => TRUE, + 'js' => 'onsubmit="return elggCheckFormSubmission()"', ); echo elgg_view('input/form', $params); diff --git a/views/installation/install/forms/settings.php b/views/installation/install/forms/settings.php index 67cba10f6..7f493ebff 100644 --- a/views/installation/install/forms/settings.php +++ b/views/installation/install/forms/settings.php @@ -16,5 +16,6 @@ $params = array( 'body' => $form_body, 'action' => $url, 'disable_security' => TRUE, + 'js' => 'onsubmit="return elggCheckFormSubmission()"', ); echo elgg_view('input/form', $params); 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> diff --git a/views/installation/install/nav.php b/views/installation/install/nav.php index d6a20ea2b..ca4b8a87b 100644 --- a/views/installation/install/nav.php +++ b/views/installation/install/nav.php @@ -19,7 +19,7 @@ if (isset($vars['refresh']) && $vars['refresh']) { // create next button and selectively disable $next_text = elgg_echo('next'); $next_link = "{$vars['url']}install.php?step={$vars['next_step']}"; -$next = "<a href=\"$next_link\" disable=\"disable\">$next_text</a>"; +$next = "<a href=\"$next_link\">$next_text</a>"; if (isset($vars['advance']) && !$vars['advance']) { // disable the next button $next = "<a class=\"disabled\">$next_text</a>"; |