BUG 7087 problema del forgotpasswd solucionado para servidores lentos.

This commit is contained in:
Alvaro Campos
2011-10-25 18:10:17 -04:00
parent c1ab331bd4
commit f65f966ef7
2 changed files with 5 additions and 5 deletions

View File

@@ -2103,6 +2103,7 @@ class XmlForm_Field_Link extends XmlForm_Field {
var $link = '';
var $value = '';
var $target = '';
var $style = '';
var $colClassName = 'RowLink';
/**
* Function render
@@ -2118,7 +2119,7 @@ class XmlForm_Field_Link extends XmlForm_Field {
$value = G::replaceDataField ( $this->value, $owner->values );
$label = G::replaceDataField ( $this->label, $owner->values );
if ($this->mode == 'edit'){
$html = '<a class="tableOption" href=\'' . $this->htmlentities ( $link, ENT_QUOTES, 'utf-8' ) . '\'' . 'id="form[' . $this->name . ']" name="form[' . $this->name . ']"' . (($this->onclick) ? ' onclick="' . htmlentities ( $onclick, ENT_QUOTES, 'utf-8' ) . '"' : '') . (($this->target) ? ' target="' . htmlentities ( $target, ENT_QUOTES, 'utf-8' ) . '"' : '') . '>' . $this->htmlentities ( $this->value === '' ? $label : $value, ENT_QUOTES, 'utf-8' ) . '</a>';
$html = '<a class="tableOption" href=\'' . $this->htmlentities ( $link, ENT_QUOTES, 'utf-8' ) . '\'' . 'id="form[' . $this->name . ']" name="form[' . $this->name . ']" style="' . htmlentities ( $this->style, ENT_QUOTES, 'utf-8' ) .'" '. (($this->onclick) ? ' onclick="' . htmlentities ( $onclick, ENT_QUOTES, 'utf-8' ) . '"' : '') . (($this->target) ? ' target="' . htmlentities ( $target, ENT_QUOTES, 'utf-8' ) . '"' : '') . '>' . $this->htmlentities ( $this->value === '' ? $label : $value, ENT_QUOTES, 'utf-8' ) . '</a>';
$html .= $this->renderHint();
} else {
$html = $this->htmlentities ( $this->value === '' ? $label : $value, ENT_QUOTES, 'utf-8' );

View File

@@ -19,17 +19,16 @@
<en>Login</en>
</BSUBMIT>
<FORGOT_PASWORD_LINK type="link" link="forgotPassword" onclick="" colAlign="right" colWidth="135">
<FORGOT_PASWORD_LINK type="link" link="forgotPassword" onclick="" colAlign="right" colWidth="135" style="display:none;">
<en>Forgot Password</en>
</FORGOT_PASWORD_LINK>
<JS type="javascript"><![CDATA[
// enable/disable forgot password link
if(flagForgotPassword != 'on' )
hideRowById('FORGOT_PASWORD_LINK');
if(flagForgotPassword == 'on' )
document.getElementById("form[FORGOT_PASWORD_LINK]").style.display = 'block';//hideRowById('FORGOT_PASWORD_LINK');
var panel;