alecpl
2009-05-14 cea956cf6a28aa1a4fede59a9309ec626c4ebc2e
program/js/app.js
@@ -2564,11 +2564,14 @@
    q = q.replace(/(^\s+|\s+$)/g, '').toLowerCase();
    // Don't (re-)search if string is empty or if the last results are still active
    if (!q.length || q == this.ksearch_value)
    if (q == this.ksearch_value)
      return;
    this.ksearch_value = q;
    
    if (!q.length)
      return;
    this.display_message(this.get_label('searching'), 'loading', true);
    this.http_post('autocomplete', '_search='+urlencode(q));
  };