BUG 6945 "Country in Language code causes Javascript error and causes..." SOLVED

The html tags on xml label section was causing the problem, but it is fixed now
This commit is contained in:
Erik Amaru Ortiz
2011-05-27 10:48:20 -04:00
parent 9caaeed486
commit f83fef3f7a
6 changed files with 181 additions and 186 deletions

View File

@@ -99,6 +99,7 @@ class XmlForm_Field_toolButton extends XmlForm_Field
var $buttonStyle = '';
/*$hoverMethod : back | switch*/
var $hoverMethod='back';
var $class;
/**
* Prints the components of the toolBar
@@ -157,6 +158,10 @@ class XmlForm_Field_toolButton extends XmlForm_Field
'<br/><img src="'.htmlentities( $url, ENT_QUOTES, 'utf-8').'"'.
(($this->style)?' style="'.$this->style.'"':'').'/>';
break;
case 'class':
$html='<div onmouseover=\'backImage(this,"url(/images/dynamicForm/hover.gif) no-repeat")\' onmouseout=\'backImage(this,"")\' style="width:25px;height:25px;margin-bottom:3px">
<div class="'.$this->class.'" title="'.strip_tags($this->label).'"/>
</div>';
}
return '<a class="toolButton" '.
(($this->buttonStyle)?' style="'.$this->buttonStyle.'"':'').