IDEMPIERE-786 ZK: Remove onFocus and onBlur server side event for field editor. Fixed problem with ; character.
This commit is contained in:
parent
659edb3d55
commit
c0c394d766
|
@ -530,7 +530,7 @@ DataStatusListener, IADTabpanel, IdSpace, IFieldEditorContainer
|
|||
editor.getComponent().setWidgetOverride("fieldHeader", HelpController.escapeJavascriptContent(field.getHeader()));
|
||||
editor.getComponent().setWidgetOverride("fieldDescription", HelpController.escapeJavascriptContent(field.getDescription()));
|
||||
editor.getComponent().setWidgetOverride("fieldHelp", HelpController.escapeJavascriptContent(field.getHelp()));
|
||||
editor.getComponent().setWidgetListener("onFocus", "zWatch.fire('onFieldTooltip', this, null, this.fieldHeader, this.fieldDescription, this.fieldHelp);");
|
||||
editor.getComponent().setWidgetListener("onFocus", "zWatch.fire('onFieldTooltip', this, null, this.fieldHeader(), this.fieldDescription(), this.fieldHelp());");
|
||||
editor.getComponent().setWidgetListener("onBlur", "zWatch.fire('onFieldTooltip', this);");
|
||||
|
||||
editor.setGridTab(this.getGridTab());
|
||||
|
|
|
@ -381,7 +381,7 @@ public class GridTabRowRenderer implements RowRenderer<Object[]>, RowRendererExt
|
|||
editor.getComponent().setWidgetOverride("fieldHeader", HelpController.escapeJavascriptContent(gridPanelFields[i].getHeader()));
|
||||
editor.getComponent().setWidgetOverride("fieldDescription", HelpController.escapeJavascriptContent(gridPanelFields[i].getDescription()));
|
||||
editor.getComponent().setWidgetOverride("fieldHelp", HelpController.escapeJavascriptContent(gridPanelFields[i].getHelp()));
|
||||
editor.getComponent().setWidgetListener("onFocus", "zWatch.fire('onFieldTooltip', this, null, this.fieldHeader, this.fieldDescription, this.fieldHelp);");
|
||||
editor.getComponent().setWidgetListener("onFocus", "zWatch.fire('onFieldTooltip', this, null, this.fieldHeader(), this.fieldDescription(), this.fieldHelp());");
|
||||
editor.getComponent().setWidgetListener("onBlur", "zWatch.fire('onFieldTooltip', this);");
|
||||
}
|
||||
|
||||
|
|
|
@ -444,9 +444,9 @@ public class HelpController
|
|||
{
|
||||
// If the content is null, then return ''
|
||||
if (content == null)
|
||||
return "''";
|
||||
return "function(){return '';}";
|
||||
//
|
||||
StringBuilder out = new StringBuilder("'");
|
||||
StringBuilder out = new StringBuilder("function(){return '");
|
||||
char[] chars = content.toCharArray();
|
||||
for (int i = 0; i < chars.length; i++)
|
||||
{
|
||||
|
@ -468,7 +468,7 @@ public class HelpController
|
|||
break;
|
||||
}
|
||||
}
|
||||
out.append("'");
|
||||
out.append("';}");
|
||||
return out.toString();
|
||||
} // maskHTML
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue