Changeset 5273 in subversion
- Timestamp:
- Sep 23, 2011 3:48:21 AM (20 months ago)
- File:
-
- 1 edited
-
trunk/roundcubemail/program/js/app.js (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/roundcubemail/program/js/app.js
r5268 r5273 3616 3616 p = inp_value.lastIndexOf(',', cpos-1), 3617 3617 q = inp_value.substring(p+1, cpos), 3618 min = this.env.autocomplete_min_length; 3618 min = this.env.autocomplete_min_length, 3619 ac = this.ksearch_data; 3619 3620 3620 3621 // trim query string … … 3642 3643 return; 3643 3644 3644 // ...new search value contains old one and previous search result was empty3645 if (old_value && old_value.length && this.env.contacts && !this.env.contacts.length && q.indexOf(old_value) == 0)3645 // ...new search value contains old one and previous search was not finished or its result was empty 3646 if (old_value && old_value.length && q.indexOf(old_value) == 0 && (!ac || !ac.num) && this.env.contacts && !this.env.contacts.length) 3646 3647 return; 3647 3648 … … 3651 3652 action = props && props.action ? props.action : 'mail/autocomplete'; 3652 3653 3653 this.ksearch_data = {id: reqid, sources: sources.slice(), action: action, locks: [], requests: []}; 3654 this.ksearch_data = {id: reqid, sources: sources.slice(), action: action, 3655 locks: [], requests: [], num: sources.length}; 3654 3656 3655 3657 for (i=0; i<threads; i++) { … … 3736 3738 // run next parallel search 3737 3739 if (data.id == reqid) { 3740 data.num--; 3738 3741 if (maxlen > 0 && data.sources.length) { 3739 3742 var lock, xhr, source = data.sources.shift();
Note: See TracChangeset
for help on using the changeset viewer.
