summaryrefslogtreecommitdiff
path: root/login_form.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2008-10-31 08:01:16 +0100
committerAndrew Dolgov <[email protected]>2008-10-31 08:01:16 +0100
commit0136468d67131e82454a4b3c2e120e7ebd9c47b7 (patch)
treefad9ccd88481ddef921f66140d65579a017868ed /login_form.php
parent7defa0891a8c458e32c68ec8519ee46c569c65e8 (diff)
login form: display registration link as a button
Diffstat (limited to 'login_form.php')
-rw-r--r--login_form.php10
1 files changed, 8 insertions, 2 deletions
diff --git a/login_form.php b/login_form.php
index cf764bfe8..59982c295 100644
--- a/login_form.php
+++ b/login_form.php
@@ -43,6 +43,11 @@ function languageChange(elem) {
}
}
+function gotoRegForm() {
+ window.location.href = "register.php";
+ return false;
+}
+
function bwLimitChange(elem) {
try {
var limit_set = elem.checked;
@@ -123,11 +128,12 @@ window.onload = init;
<tr><td colspan="2" align="right" class="innerLoginCell">
+ <input type="submit" class="button" value="<?php echo __('Log in') ?>" name='click'>
<?php if (defined('_ENABLE_REGISTRATION')) { ?>
- <a class="newAcctPrompt" href="register.php">Create new account</a>
+ <input type="submit" class="button" onclick="return gotoRegForm()"
+ value="<?php echo __("Create new account") ?>"/>
<?php } ?>
- <input type="submit" class="button" value="<?php echo __('Log in') ?>" name='click'>
<input type="hidden" name="action" value="login">
<input type="hidden" name="rt"
value="<?php if ($return_to != 'none') { echo $return_to; } ?>">