You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "dukian (JIRA)" <ji...@apache.org> on 2010/11/30 03:10:13 UTC

[jira] Updated: (OFBIZ-4039) jquery branch's autocomplete is CJK incompatible

     [ https://issues.apache.org/jira/browse/OFBIZ-4039?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

dukian updated OFBIZ-4039:
--------------------------

    Attachment: autocomplete-cjk.png

Please ref attachment(autocomplete-cjk.png), it shows html entities in autocomplete item list.

Dive into code to figure out jquery's autocomplete will encode html entities in framework/images/webapp/images/jquery/ui/js/jquery-ui-1.8.6.custom.min.js Line 323:147 text(b.label). It can be change as html(b.label) to solve this problem.

However change other's code is a bad workaround. Maybe can modify framework/common/webcommon/includes/ajaxAutocompleteOptions.ftl Line 49:

    <#assign displayString = displayString + StringUtil.wrapString(field) + " ">

output native code to replace html entities, I don't know whether there are another issues?

> jquery branch's autocomplete is CJK incompatible
> ------------------------------------------------
>
>                 Key: OFBIZ-4039
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-4039
>             Project: OFBiz
>          Issue Type: Bug
>    Affects Versions: jQuery
>            Reporter: dukian
>         Attachments: autocomplete-cjk.png
>
>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.