[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:
Fabien Meghazi 2012-08-01 13:39:24 +02:00
parent 3edc646322
commit ad6f3b1571
1 changed files with 4 additions and 2 deletions

View File

@ -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() {