[IMP] web : replace jquery selector by native selector

the only goal of this change is not to use a jquery selector on the
body of the document.
Jquery adds an ID attribute to all the nodes it selects. This in turn
triggers the attribute change debugger in chrome, and creates a lot
of noise while debuging.
This commit is contained in:
Vincent Schippefilt
2018-03-21 14:48:35 +01:00
parent b51f2d38c2
commit 8fe220bf8b
@@ -164,7 +164,8 @@ var AbstractWebClient = Widget.extend(ServiceProviderMixin, {
core.bus.on('click', this, function (ev) {
$('.tooltip').remove();
if (!$(ev.target).is('input[type=file]')) {
self.$('.oe_dropdown_menu.oe_opened, .oe_dropdown_toggle.oe_opened').removeClass('oe_opened');
$(this.el.getElementsByClassName('oe_dropdown_menu oe_opened')).removeClass('oe_opened');
$(this.el.getElementsByClassName('oe_dropdown_toggle oe_opened')).removeClass('oe_opened');
}
});
core.bus.on('connection_lost', this, this.on_connection_lost);