Changeset 13979
- Timestamp:
- 06/11/08 12:28:40 (5 months ago)
- Files:
-
- 1 modified
-
dijit/trunk/form/ComboBox.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
dijit/trunk/form/ComboBox.js
r13726 r13979 644 644 // If labelType is not "text" we don't want to screw any markup ot whatever. 645 645 if (this.highlightMatch!="none" && this.labelType=="text" && this._lastInput){ 646 label = this.doHighlight(label );646 label = this.doHighlight(label, this._escapeHtml(this._lastInput)); 647 647 labelType = "html"; 648 648 } … … 650 650 }, 651 651 652 doHighlight:function(/*String*/label ){652 doHighlight:function(/*String*/label, /*String*/find){ 653 653 // summary: 654 654 // Highlights the string entered by the user in the menu, by default this 655 655 // highlights the first occurence found. Override this method 656 656 // to implement your custom highlighing. 657 var find = this._escapeHtml(this._lastInput);658 657 // Add greedy when this.highlightMatch=="all" 659 658 var modifiers = "i"+(this.highlightMatch=="all"?"g":"");