~savoirfairelinux-openerp/openerp-web/1279885

« back to all changes in this revision

Viewing changes to addons/web/static/src/js/view_form.js

  • Committer: Martin Trigaux
  • Date: 2014-01-20 16:01:47 UTC
  • Revision ID: mat@openerp.com-20140120160147-q7lg4j93c836ec44
[FIX] search: add delay of 250us (was 0) on autocomplete fields in search bar and m2o fields.
This avoids making a search request for each keypressed

Show diffs side-by-side

added added

removed removed

Lines of Context:
3277
3277
            // disabled to solve a bug, but may cause others
3278
3278
            //close: anyoneLoosesFocus,
3279
3279
            minLength: 0,
3280
 
            delay: 0
 
3280
            delay: 250
3281
3281
        });
3282
3282
        this.$input.autocomplete("widget").openerpClass();
3283
3283
        // used to correct a bug when selecting an element by pushing 'enter' in an editable list