Changeset 509

Show
Ignore:
Timestamp:
10/17/07 13:57:41 (13 months ago)
Author:
gyuque
Message:

lang/javascript/userscripts/syobocalplus.user.js: made incremental search non case sensitive

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/javascript/userscripts/syobocalplus.user.js

    r507 r509  
    138138                                this.namedMap[tid] = tobj; 
    139139 
    140                                 this.nameDB += name; 
     140                                this.nameDB += this.filterSearchWord(name); 
    141141                                this.nameDB += "\uffff"; 
    142142 
     
    148148 
    149149                        return tobj; 
     150                }, 
     151 
     152                filterSearchWord: function(raw) { 
     153                        return raw.toLowerCase(); 
    150154                }, 
    151155 
     
    162166 
    163167                searchTitle: function(kw) { 
     168                        if (!kw) 
     169                                return null; 
     170 
     171                        kw = this.filterSearchWord(kw); 
     172 
    164173                        var matchedTitles = []; 
    165174                        var count = 0;