[FIX] Sidebar add attachment: click event order in firefox difference for html#click and input[type=file] click
bzr revid: fme@openerp.com-20120801113924-8303s20551rhocqe
This commit is contained in:
parent
3edc646322
commit
ad6f3b1571
|
@ -914,8 +914,10 @@ instance.web.Client = instance.web.Widget.extend({
|
|||
}
|
||||
}, 0);
|
||||
});
|
||||
instance.web.bus.on('click', this, function() {
|
||||
self.$element.find('.oe_dropdown_menu.oe_opened').removeClass('oe_opened');
|
||||
instance.web.bus.on('click', this, function(ev) {
|
||||
if (!$(ev.target).is('input[type=file]')) {
|
||||
self.$element.find('.oe_dropdown_menu.oe_opened').removeClass('oe_opened');
|
||||
}
|
||||
});
|
||||
},
|
||||
show_common: function() {
|
||||
|
|
Loading…
Reference in New Issue