Index: trunk/extensions/SemanticForms/libs/SemanticForms.js |
— | — | @@ -29,8 +29,8 @@ |
30 | 30 | } |
31 | 31 | } |
32 | 32 | |
33 | | - /* extending jQuery functions for custom highlighting */ |
34 | | - jQuery.ui.autocomplete.prototype._renderItem = function( ul, item) { |
| 33 | + /* extending jQuery functions for custom highlighting */ |
| 34 | + jQuery.ui.autocomplete.prototype._renderItem = function( ul, item) { |
35 | 35 | |
36 | 36 | var re = new RegExp("(?![^&;]+;)(?!<[^<>]*)(" + this.term.replace(/([\^\$\(\)\[\]\{\}\*\.\+\?\|\\])/gi, "\\$1") + ")(?![^<>]*>)(?![^&;]+;)", "gi"); |
37 | 37 | var loc = item.label.search(re); |
— | — | @@ -883,7 +883,7 @@ |
884 | 884 | if (this.value && (!request.term || matcher.test(text))) { |
885 | 885 | return { |
886 | 886 | id: this.value, |
887 | | - label: text.replace(new RegExp("(?![^&;]+;)(?!<[^<>]*)(" + jQuery.ui.autocomplete.escapeRegex(request.term) + ")(?![^<>]*>)(?![^&;]+;)", "gi"), "<strong>$1</strong>"), |
| 887 | + label: text, |
888 | 888 | value: text |
889 | 889 | }; |
890 | 890 | } |