[FIX] global click for dropdown, remove oe_opened on both elements

bzr revid: fme@openerp.com-20120816100958-yi9a2xuwuhwsl3t8
This commit is contained in:
Fabien Meghazi 2012-08-16 12:09:58 +02:00
parent 4bdf1b6bea
commit b7ca37a215
1 changed files with 1 additions and 1 deletions

View File

@ -963,7 +963,7 @@ instance.web.Client = instance.web.Widget.extend({
instance.web.bus.on('click', this, function(ev) {
$.fn.tipsy.clear();
if (!$(ev.target).is('input[type=file]')) {
self.$element.find('.oe_dropdown_menu.oe_opened').removeClass('oe_opened');
self.$element.find('.oe_dropdown_menu.oe_opened, .oe_dropdown_toggle.oe_opened').removeClass('oe_opened');
}
});
},