svn commit: r1656445 - /ofbiz/trunk/framework/images/webapp/images/selectall.js

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

svn commit: r1656445 - /ofbiz/trunk/framework/images/webapp/images/selectall.js

jleroux@apache.org
Author: jleroux
Date: Mon Feb  2 12:00:23 2015
New Revision: 1656445

URL: http://svn.apache.org/r1656445
Log:
A patch from Wei Zhang for "Return <strong> tag for Autocomplete Dropdown highlight" https://issues.apache.org/jira/browse/OFBIZ-6036

I got the highlight text like <strong>US</strong> for Autocomplete Dropdown. See http://demo-trunk-ofbiz.apache.org/example/control/FormWidgetExamples

Modified:
    ofbiz/trunk/framework/images/webapp/images/selectall.js

Modified: ofbiz/trunk/framework/images/webapp/images/selectall.js
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/images/webapp/images/selectall.js?rev=1656445&r1=1656444&r2=1656445&view=diff
==============================================================================
--- ofbiz/trunk/framework/images/webapp/images/selectall.js (original)
+++ ofbiz/trunk/framework/images/webapp/images/selectall.js Mon Feb  2 12:00:23 2015
@@ -524,7 +524,7 @@ function ajaxAutoCompleteDropDown() {
                                             "(?![^&;]+;)(?!<[^<>]*)(" +
                                             jQuery.ui.autocomplete.escapeRegex(request.term) +
                                             ")(?![^<>]*>)(?![^&;]+;)", "gi"
-                                        ), "<strong>$1</strong>" ),
+                                        ), "<b>$1</b>" ),
                                     value: text,
                                     option: this
                                 };
@@ -558,7 +558,7 @@ function ajaxAutoCompleteDropDown() {
                 })
                 //.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>" )