[jira] [Commented] (OFBIZ-6036) Return <strong> tag for Autocomplete Dropdown highlight

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

[jira] [Commented] (OFBIZ-6036) Return <strong> tag for Autocomplete Dropdown highlight

Nicolas Malin (Jira)

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

Wei Zhang commented on OFBIZ-6036:
----------------------------------

see my fix below.
{noformat}
Index: framework/images/webapp/images/selectall.js
===================================================================
--- framework/images/webapp/images/selectall.js (版本 1656378)
+++ framework/images/webapp/images/selectall.js (工作副本)
@@ -524,7 +524,7 @@
                                             "(?![^&;]+;)(?!<[^<>]*)(" +
                                             jQuery.ui.autocomplete.escapeRegex(request.term) +
                                             ")(?![^<>]*>)(?![^&;]+;)", "gi"
-                                        ), "<strong>$1</strong>" ),
+                                        ), "<b>$1</b>" ),
                                     value: text,
                                     option: this
                                 };
@@ -558,7 +558,7 @@
                 })
                 //.addClass( "ui-widget ui-widget-content ui-corner-left" );
 
-            input.data( "autocomplete" )._renderItem = function( ul, item ) {
+            input.data( "ui-autocomplete" )._renderItem = function( ul, item ) {
                 return jQuery( "<li></li>" )
                     .data( "item.autocomplete", item )
                     .append( "<a>" + item.label + "</a>" )
{noformat}

> Return <strong> tag for Autocomplete Dropdown highlight
> -------------------------------------------------------
>
>                 Key: OFBIZ-6036
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-6036
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: Trunk
>            Reporter: Wei Zhang
>            Assignee: Jacques Le Roux
>
> I got the highlight text like <strong>US</strong> for Autocomplete Dropdown. See http://demo-trunk-ofbiz.apache.org/example/control/FormWidgetExamples



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)