$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
$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
'body' => $form_body,
'action' => $url,
'disable_security' => TRUE,
+ 'js' => 'onsubmit="return elggCheckFormSubmission()"',
);
echo elgg_view('input/form', $params);
'body' => $form_body,
'action' => $url,
'disable_security' => TRUE,
+ 'js' => 'onsubmit="return elggCheckFormSubmission()"',
);
echo elgg_view('input/form', $params);
'body' => $form_body,
'action' => $url,
'disable_security' => TRUE,
+ 'js' => 'onsubmit="return elggCheckFormSubmission()"',
);
echo elgg_view('input/form', $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>
// 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>";