Permalink
Browse files

Fixed js bug with submit buttons in restore and reset password forms

  • Loading branch information...
1 parent 54db1de commit 8c69f5ad0932a02566b912b7b7587ce793e0bfa4 @JustBlackBird JustBlackBird committed with Jan 27, 2012
Showing with 6 additions and 6 deletions.
  1. +3 −3 src/messenger/webim/view/resetpwd.php
  2. +3 −3 src/messenger/webim/view/restore.php
@@ -86,11 +86,11 @@ function tpl_content() {
<div class="fbutton">
<table class="submitbutton"><tr>
- <td><a href="javascript:resetForm.submit();">
+ <td><a href="javascript:document.resetForm.submit();">
<img src='<?php echo $webimroot ?>/images/submit.gif' width="40" height="35" border="0" alt="" /></a></td>
- <td class="submit"><a href="javascript:resetForm.submit();">
+ <td class="submit"><a href="javascript:document.resetForm.submit();">
<?php echo getlocal("resetpwd.submit") ?></a></td>
- <td><a href="javascript:resetForm.submit();">
+ <td><a href="javascript:document.resetForm.submit();">
<img src='<?php echo $webimroot ?>/images/submitrest.gif' width="10" height="35" border="0" alt="" /></a></td>
</tr></table>
@@ -74,11 +74,11 @@ function tpl_content() {
<div class="fbutton">
<table class="submitbutton"><tr>
- <td><a href="javascript:restoreForm.submit();">
+ <td><a href="javascript:document.restoreForm.submit();">
<img src='<?php echo $webimroot ?>/images/submit.gif' width="40" height="35" border="0" alt="" /></a></td>
- <td class="submit"><a href="javascript:restoreForm.submit();">
+ <td class="submit"><a href="javascript:document.restoreForm.submit();">
<?php echo getlocal("restore.submit") ?></a></td>
- <td><a href="javascript:restoreForm.submit();">
+ <td><a href="javascript:document.restoreForm.submit();">
<img src='<?php echo $webimroot ?>/images/submitrest.gif' width="10" height="35" border="0" alt="" /></a></td>
</tr></table>

0 comments on commit 8c69f5a

Please sign in to comment.