Author: jleroux Date: Mon Feb 2 12:01:20 2015 New Revision: 1656446 URL: http://svn.apache.org/r1656446 Log: "Applied fix from trunk for revision: 1656445 " ------------------------------------------------------------------------ r1656445 | jleroux | 2015-02-02 13:00:23 +0100 (lun. 02 févr. 2015) | 3 lignes
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/branches/release14.12/ (props changed) ofbiz/branches/release14.12/framework/images/webapp/images/selectall.js Propchange: ofbiz/branches/release14.12/ ------------------------------------------------------------------------------ --- svn:mergeinfo (original) +++ svn:mergeinfo Mon Feb 2 12:01:20 2015 @@ -8,4 +8,4 @@ /ofbiz/branches/json-integration-refactoring:1634077-1635900 /ofbiz/branches/multitenant20100310:921280-927264 /ofbiz/branches/release13.07:1547657 -/ofbiz/trunk:1649393,1649742,1650240,1650583,1650642,1650678,1650882,1650887,1650938,1651593,1652361,1652706,1652725,1652731,1652739,1653248,1653456,1654175,1654273,1655046,1655668,1655979,1656185,1656198 +/ofbiz/trunk:1649393,1649742,1650240,1650583,1650642,1650678,1650882,1650887,1650938,1651593,1652361,1652706,1652725,1652731,1652739,1653248,1653456,1654175,1654273,1655046,1655668,1655979,1656185,1656198,1656445 Modified: ofbiz/branches/release14.12/framework/images/webapp/images/selectall.js URL: http://svn.apache.org/viewvc/ofbiz/branches/release14.12/framework/images/webapp/images/selectall.js?rev=1656446&r1=1656445&r2=1656446&view=diff ============================================================================== --- ofbiz/branches/release14.12/framework/images/webapp/images/selectall.js (original) +++ ofbiz/branches/release14.12/framework/images/webapp/images/selectall.js Mon Feb 2 12:01:20 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>" )

