summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/search.js
diff options
context:
space:
mode:
authorFabien Meghazi <fme@openerp.com>2011-09-28 12:44:58 +0200
committerFabien Meghazi <fme@openerp.com>2011-09-28 12:44:58 +0200
commitb00f4e7e1f722c26fe8f50ba2af2cd99e61033f0 (patch)
treec4ea0c61129c5e194a56d09a5aa84a4726829d3e /addons/web/static/src/js/search.js
parentad8a70c763fae708cd4b2ad57f8300cb1639294d (diff)
[IMP] Always instantiate search view in ViewManagerAction
bzr revid: fme@openerp.com-20110928104458-1a6768411suiky6c
Diffstat (limited to 'addons/web/static/src/js/search.js')
-rw-r--r--addons/web/static/src/js/search.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/addons/web/static/src/js/search.js b/addons/web/static/src/js/search.js
index db91d6bfd27..c2a472b3ea6 100644
--- a/addons/web/static/src/js/search.js
+++ b/addons/web/static/src/js/search.js
@@ -30,6 +30,7 @@ openerp.web.SearchView = openerp.web.Widget.extend(/** @lends openerp.web.Search
},
start: function() {
this._super();
+ this.$element.hide();
this.rpc("/web/searchview/load", {"model": this.model, "view_id":this.view_id}, this.on_loaded);
return this.ready.promise();
},
@@ -137,10 +138,7 @@ openerp.web.SearchView = openerp.web.Widget.extend(/** @lends openerp.web.Search
'defaults': this.defaults
});
- // We don't understand why the following commented line does not work in Chrome but
- // the non-commented line does. As far as we investigated, only God knows.
- //this.$element.html(render);
- jQuery(render).appendTo(this.$element);
+ this.$element.html(render);
this.$element.find(".oe_search-view-custom-filter-btn").click(ext.on_activate);
var f = this.$element.find('form');