Patch #3517040 Login screen appears under the page

This commit is contained in:
Atul Pratap Singh 2012-04-12 17:31:54 -04:00 committed by Marc Delisle
parent f7de1a212b
commit 5ab6e746b8

View File

@ -158,10 +158,6 @@ function PMA_auth()
?>
<script type="text/javascript">
//<![CDATA[
// show login form in top frame
if (top != self) {
window.top.location.href=location;
}
// reveal the login form to users with JS enabled
$(document).ready(function () {
$('form.login').show();
@ -314,6 +310,12 @@ $(document).ready(function () {
include CUSTOM_FOOTER_FILE;
}
?>
<script type="text/javascript">
// show login form in top frame.
if (top != self || document.body.className != 'loginform') {
window.top.location.href=location;
}
</script>
</body>
</html>
<?php