diff options
author | Michal Čihař <mcihar@suse.cz> | 2012-04-06 12:00:58 +0400 |
---|---|---|
committer | Michal Čihař <mcihar@suse.cz> | 2012-04-06 12:00:58 +0400 |
commit | f6d2c318396488b7ebb618c5a9f025550f82a790 (patch) | |
tree | c442dd9381f4fb9ac05dd25009438a80ab60018f /libraries/auth | |
parent | fd3b21b0a6d7dce9d0ab026f7fcab303985c1461 (diff) |
Revert "Drop javascript hiding of login form"
This reverts commit 7a3160ce798a92798b6686aaa0208465d3b2a631.
Diffstat (limited to 'libraries/auth')
-rw-r--r-- | libraries/auth/cookie.auth.lib.php | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/libraries/auth/cookie.auth.lib.php b/libraries/auth/cookie.auth.lib.php index 844a63909f..2c12a90d7a 100644 --- a/libraries/auth/cookie.auth.lib.php +++ b/libraries/auth/cookie.auth.lib.php @@ -162,6 +162,11 @@ function PMA_auth() if (top != self) { window.top.location.href=location; } +// reveal the login form to users with JS enabled +$(document).ready(function () { + $('form.login').show(); + $('div.language').show(); +}); //]]> </script> </head> @@ -203,7 +208,7 @@ if (top != self) { PMA_message::error(__("Javascript must be enabled past this point"))->display(); echo "</noscript>\n"; - echo "<div class='language'>"; + echo "<div class='language hide'>"; // Displays the languages form if (empty($GLOBALS['cfg']['Lang'])) { include_once './libraries/display_select_lang.lib.php'; @@ -215,7 +220,7 @@ if (top != self) { ?> <br /> <!-- Login form --> -<form method="post" action="index.php" name="login_form"<?php echo $autocomplete; ?> target="_top" class="login"> +<form method="post" action="index.php" name="login_form"<?php echo $autocomplete; ?> target="_top" class="login hide"> <fieldset> <legend> <?php |