~unifield-team/unifield-web/web-UF-748

« back to all changes in this revision

Viewing changes to addons/openerp/static/javascript/m2o.js

  • Committer: jf
  • Date: 2013-05-22 08:51:40 UTC
  • Revision ID: jfb@tempo-consulting.fr-20130522085140-46ifxrljn5gpc8lq
UF-748 [FIX] js performance
lp:openobject-client-web/6.0 @revno 4861

Show diffs side-by-side

added added

removed removed

Lines of Context:
65
65
    jQuery(this.text).attr('autocomplete', 'OFF');
66
66
 
67
67
    if(this.editable) {
68
 
        jQuery(this.field).change(jQuery.proxy(this, 'on_change'));
69
68
        jQuery(this.text).bind({
70
69
            keydown: jQuery.proxy(this, 'on_keydown'),
71
70
            keypress: jQuery.proxy(this, 'on_keypress'),
295
294
 
296
295
                this.setCompletionText($selectedRow);
297
296
 
298
 
                if(this.callback) {
299
 
                    onChange(this.name);
300
 
                }
301
297
                this.change_icon();
302
298
                this.clearResults();
303
299
                break;
336
332
    if((evt.which == 8 || evt.which == 46) && this.field.value) {
337
333
        this.text.value = '';
338
334
        this.field.value = '';
339
 
        this.on_change(evt);
 
335
        $(this.field).change();
340
336
    }
341
337
 
342
338
    //Tab