Skip to content
Browse files

Add the same hack for old pages

  • Loading branch information...
1 parent 74a6ceb commit db8d9458de83c699350c6feb4e8f0024b110f576 @NSV committed
Showing with 5 additions and 2 deletions.
  1. +5 −2 include/login.inc.php
View
7 include/login.inc.php
@@ -111,7 +111,8 @@ function checkLength( o, n, min, max ) {
// When the form is submitted
jQuery("#login_form").submit(function(event){
- event.preventDefault();
+ <!-- Don't block the normal form workflow for enable the Browsers' Save Passwords method to work -->
+ //event.preventDefault();
tips.empty();
jQuery(".ui-button-text").html("<img src='../images/spinner.gif' width='16' height='16' alt='Loading' />");
@@ -146,7 +147,7 @@ function checkLength( o, n, min, max ) {
});
</script>
<div id="login_container" style="display:none">
- <form action="../login.php" method="post" name="login_form" id="login_form">
+ <form action="../login.php" method="post" name="login_form" id="login_form" target="save_login">
<fieldset>
<label><?php echo T_("Login") ?>: </label><br /><input name="codev_login" type="text" id="codev_login" /><br /><br />
<label><?php echo T_("Password") ?>: </label><br /><input name="codev_passwd" type="password" id="codev_passwd" />
@@ -158,6 +159,8 @@ function checkLength( o, n, min, max ) {
<img src="../images/loader-bar.gif" width="220" height="19" alt="Redirection" /><br/>
<p style="margin-top:1em;">Please wait...</p>
</div>
+ <!-- Hack to enable the Browsers' Save Passwords method to work -->
+ <iframe name="save_login" style="display: none"></iframe>
</div>
<?php

0 comments on commit db8d945

Please sign in to comment.
Something went wrong with that request. Please try again.