From 5b796318b497e6d89c8763983ab89889aa41417b Mon Sep 17 00:00:00 2001 From: Christophe Simonis Date: Fri, 16 Sep 2016 14:54:43 +0200 Subject: [FIX] web: correctly hide advanced search input for 'is set/is not set' operator --- addons/web/static/src/js/views/search_filters.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'addons/web/static') diff --git a/addons/web/static/src/js/views/search_filters.js b/addons/web/static/src/js/views/search_filters.js index 8db6288788d..064f4aa1cb3 100644 --- a/addons/web/static/src/js/views/search_filters.js +++ b/addons/web/static/src/js/views/search_filters.js @@ -129,7 +129,7 @@ ExtendedSearchProposition.Field = Widget.extend({ } }, show_inputs: function ($operator) { - var $value = this.$('.o_searchview_extended_prop_value'); + var $value = this.$el.parent(); switch ($operator.val()) { case '∃': case '∄': -- cgit v1.2.3 From f98aa664df8ff36d5c0f035c98ca691811530267 Mon Sep 17 00:00:00 2001 From: qsm-odoo Date: Fri, 16 Sep 2016 16:30:32 +0200 Subject: [FIX] web: fix low perf. of web_tour when a modal is opened When a modal was opened, the system seemed slower because a web_tour callback was called every 500 ms. This was because of jQuery. Using the "find" method on a jQuery element will temporary set an ID on this element for some jQuery reason. So, when a modal opened, a DOM mutation was caught by the web_tour observer which then called the "update" method in which a $modal.find is done... and so an ID was set and a new DOM mutation was caught again. The solution here is to provide an unique ID on each modal in odoo so that the find function has not to set an ID, and so does not trigger any DOM mutation. --- addons/web/static/src/xml/base_common.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'addons/web/static') diff --git a/addons/web/static/src/xml/base_common.xml b/addons/web/static/src/xml/base_common.xml index 1570b5a8717..2af69b61118 100644 --- a/addons/web/static/src/xml/base_common.xml +++ b/addons/web/static/src/xml/base_common.xml @@ -3,7 +3,7 @@ -