From df0076c67d5ea2f7a6d4ba6aa5b104700476c69b Mon Sep 17 00:00:00 2001 From: Cecile Tonglet Date: Tue, 4 Feb 2014 16:05:44 +0100 Subject: [PATCH] [FIX] getParent() js error when clicking to fast on menu items of dashboards bzr revid: cto@openerp.com-20140204150544-nkuhxree6qijihq2 --- addons/web/static/src/js/search.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/web/static/src/js/search.js b/addons/web/static/src/js/search.js index 557d0baa124..3d7ba5ae293 100644 --- a/addons/web/static/src/js/search.js +++ b/addons/web/static/src/js/search.js @@ -407,7 +407,7 @@ instance.web.SearchView = instance.web.Widget.extend(/** @lends instance.web.Sea context: this.dataset.get_context(), }); - $.when(load_view).then(function (r) { + this.alive($.when(load_view)).then(function (r) { return self.search_view_loaded(r) }).fail(function () { self.ready.reject.apply(null, arguments);