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

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

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

Nicolas Malin (Jira)
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




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

Reply | Threaded
Open this post in threaded view
|

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

Nicolas Malin (Jira)

     [ 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.

Reply | Threaded
Open this post in threaded view
|

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

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

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

Jacques Le Roux updated OFBIZ-4039:
-----------------------------------

    Issue Type: Sub-task  (was: Bug)
        Parent: OFBIZ-3814

> jquery branch's autocomplete is CJK incompatible
> ------------------------------------------------
>
>                 Key: OFBIZ-4039
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-4039
>             Project: OFBiz
>          Issue Type: Sub-task
>    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.

Reply | Threaded
Open this post in threaded view
|

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

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

    [ https://issues.apache.org/jira/browse/OFBIZ-4039?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12979351#action_12979351 ]

Jacques Le Roux commented on OFBIZ-4039:
----------------------------------------

Hi Dukian,

Sorry to be late on this, I did not notice your solution (I looked for a patch and did not read your comment completly :/). Before I commit Leon's solution at OFBIZ-4101, could you please test it?

Thanks in advance for your help!

> jquery branch's autocomplete is CJK incompatible
> ------------------------------------------------
>
>                 Key: OFBIZ-4039
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-4039
>             Project: OFBiz
>          Issue Type: Sub-task
>    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.

Reply | Threaded
Open this post in threaded view
|

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

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

    [ https://issues.apache.org/jira/browse/OFBIZ-4039?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12979363#action_12979363 ]

dukian commented on OFBIZ-4039:
-------------------------------

Hi Jacques,

I've tested OFBIZ-4101. Leon's solution works that's great! :-)

> jquery branch's autocomplete is CJK incompatible
> ------------------------------------------------
>
>                 Key: OFBIZ-4039
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-4039
>             Project: OFBiz
>          Issue Type: Sub-task
>    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.

Reply | Threaded
Open this post in threaded view
|

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

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

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

Jacques Le Roux closed OFBIZ-4039.
----------------------------------

    Resolution: Duplicate
      Assignee: Jacques Le Roux

Thanks Dukian for quick testing!

It's commited at r1056977

> jquery branch's autocomplete is CJK incompatible
> ------------------------------------------------
>
>                 Key: OFBIZ-4039
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-4039
>             Project: OFBiz
>          Issue Type: Sub-task
>    Affects Versions: jQuery
>            Reporter: dukian
>            Assignee: Jacques Le Roux
>         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.