Nicolas (OpenERP) has proposed merging 
lp:~openerp-dev/openerp-web/trunk-focusfix-niv into lp:openerp-web.

Requested reviews:
  Antony Lesuisse (OpenERP) (al-openerp)

For more details, see:
https://code.launchpad.net/~openerp-dev/openerp-web/trunk-focusfix-niv/+merge/117026

Fixes focus problems, but to that I had to remove some anti-flickering code.
-- 
https://code.launchpad.net/~openerp-dev/openerp-web/trunk-focusfix-niv/+merge/117026
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openerp-web/trunk-focusfix-niv.
=== modified file 'addons/web/static/src/js/view_form.js'
--- addons/web/static/src/js/view_form.js	2012-07-26 15:55:10 +0000
+++ addons/web/static/src/js/view_form.js	2012-07-27 09:58:19 +0000
@@ -267,7 +267,6 @@
         if (this.$pager) {
             this.$pager.show();
         }
-        this.$element.show().css('visibility', 'hidden');
         this.$element.add(this.$buttons).removeClass('oe_form_dirty');
 
         var shown = this.has_been_loaded;
@@ -286,7 +285,6 @@
             if (options.editable) {
                 self.to_edit_mode();
             }
-            self.$element.css('visibility', 'visible');
         });
     },
     do_hide: function () {
@@ -2062,7 +2060,7 @@
         return this.get('value') === '' || this._super();
     },
     focus: function() {
-        this.delay_focus(this.$element.find('input:first'));
+        this.$element.find('input:first')[0].focus();
     }
 });
 

_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help   : https://help.launchpad.net/ListHelp

Reply via email to