[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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user