[FIX] clear enabled_filters searchview state when clearing the search form

lp bug: https://launchpad.net/bugs/851981 fixed

bzr revid: xmo@openerp.com-20110920131945-uonv71pnnfsniapu
This commit is contained in:
Xavier Morel 2011-09-20 15:19:45 +02:00
parent 011d92bb6c
commit 78e2374ea2
1 changed files with 2 additions and 1 deletions

View File

@ -327,7 +327,8 @@ openerp.web.SearchView = openerp.web.Widget.extend(/** @lends openerp.web.Search
this.notification.notify("Invalid Search", "triggered from search view");
},
do_clear: function () {
$('.filter_label').removeClass('enabled');
this.$element.find('.filter_label').removeClass('enabled');
this.enabled_filters.splice(0);
var string = $('a.searchview_group_string');
_.each(string, function(str){
$(str).closest('div.searchview_group').removeClass("expanded").addClass('folded');