Ignore:
Timestamp:
Apr 14, 2014, 11:58:06 PM (10 years ago)
Author:
rvelices
Message:

autocomplete js fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/rv_autocomplete/res/suggest-core.js

    r28181 r28186  
    337337                        while ( (matches = raw_q.match(/^[ &.,;!\?-]*[^ &.,;!\?-]+[ &.,;!\?-]+/)) != null ) {
    338338                                current.lastFocusStr += raw_q.substr(0, matches[0].length);
    339                                 raw_q = raw_q.substr(matches[0].length);
    340                                 current.q = remove_accents( ac_normalize( current.raw_q.toLowerCase() ) );
     339                                current.raw_q = raw_q = raw_q.substr(matches[0].length);
     340                                current.q = remove_accents( ac_normalize( raw_q.toLowerCase() ) );
    341341                                res = ac_search(current);
    342342                                if (res.length) {
Note: See TracChangeset for help on using the changeset viewer.