Changeset 13979

Show
Ignore:
Timestamp:
06/11/08 12:28:40 (5 months ago)
Author:
wolfram
Message:

+ realize what was mentioned in refs#6461, thx "guest" for the input

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • dijit/trunk/form/ComboBox.js

    r13726 r13979  
    644644                        // If labelType is not "text" we don't want to screw any markup ot whatever. 
    645645                        if (this.highlightMatch!="none" && this.labelType=="text" && this._lastInput){ 
    646                                 label = this.doHighlight(label); 
     646                                label = this.doHighlight(label, this._escapeHtml(this._lastInput)); 
    647647                                labelType = "html"; 
    648648                        } 
     
    650650                }, 
    651651                 
    652                 doHighlight:function(/*String*/label){ 
     652                doHighlight:function(/*String*/label, /*String*/find){ 
    653653                        // summary: 
    654654                        //              Highlights the string entered by the user in the menu, by default this 
    655655                        //              highlights the first occurence found. Override this method 
    656656                        //              to implement your custom highlighing. 
    657                         var find = this._escapeHtml(this._lastInput); 
    658657                        // Add greedy when this.highlightMatch=="all" 
    659658                        var modifiers = "i"+(this.highlightMatch=="all"?"g":"");