Merge lp:~openerp-dev/openerp-web/mck-opw-579147-cbi into lp:~openerp-dev/openerp-web/6.1-web-custo-tfr

Proposed by Chris Biersbach (OpenERP)
Status: Needs review
Proposed branch: lp:~openerp-dev/openerp-web/mck-opw-579147-cbi
Merge into: lp:~openerp-dev/openerp-web/6.1-web-custo-tfr
Diff against target: 30 lines (+3/-5)
2 files modified
addons/web/static/lib/jquery/jquery-1.6.4.js (+2/-4)
addons/web/static/src/js/view_form.js (+1/-1)
To merge this branch: bzr merge lp:~openerp-dev/openerp-web/mck-opw-579147-cbi
Reviewer Review Type Date Requested Status
OpenERP R&D Team Pending
Review via email: mp+143275@code.launchpad.net

Description of the change

The issue: When clicking on the button next to o2m fields, an error message appeared. A first fix by mva caused this to disappear, but the first click still wouldn't open the context menu (only present in IE8)

The cause: a bug in jquery

This branch, along with an addons branch of the same name, fix this issue. The context menu is now correctly opened.

To post a comment you must log in.

Unmerged revisions

2391. By Chris Biersbach (OpenERP)

[FIX] This, along with an addons patch, fixes the issue that the context menu is not opened in Internet Explorer 8 (shows an error)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'addons/web/static/lib/jquery/jquery-1.6.4.js'
--- addons/web/static/lib/jquery/jquery-1.6.4.js 2012-12-19 09:52:56 +0000
+++ addons/web/static/lib/jquery/jquery-1.6.4.js 2013-01-15 10:58:22 +0000
@@ -1015,11 +1015,9 @@
1015 while( callbacks[ 0 ] ) {1015 while( callbacks[ 0 ] ) {
1016 callbacks.shift().apply( context, args );1016 callbacks.shift().apply( context, args );
1017 }1017 }
1018 } catch(err) {
1019 //ie8 need a catch clause
1018 }1020 }
1019 catch(err)
1020 {
1021 //empty for ie8 need a catch
1022 }
1023 finally {1021 finally {
1024 fired = [ context, args ];1022 fired = [ context, args ];
1025 firing = 0;1023 firing = 0;
10261024
=== modified file 'addons/web/static/src/js/view_form.js'
--- addons/web/static/src/js/view_form.js 2013-01-14 10:35:27 +0000
+++ addons/web/static/src/js/view_form.js 2013-01-15 10:58:22 +0000
@@ -2126,7 +2126,7 @@
2126 });2126 });
2127 });2127 });
2128 this.$menu_btn.bind({2128 this.$menu_btn.bind({
2129 click: function(e) { init_context_menu_def.resolve(e); e.preventDefault() },2129 click: function(e) { $.when(init_context_menu_def.resolve(e)).then(function(){ e.preventDefault(); }); },
2130 focus: function () { $self.trigger('widget-focus'); },2130 focus: function () { $self.trigger('widget-focus'); },
2131 blur: function () {2131 blur: function () {
2132 if (cm_ignore_blur) { return; }2132 if (cm_ignore_blur) { return; }

Subscribers

People subscribed via source and target branches

to all changes: