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/src/xml/base_common.xml') 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 @@ -