summaryrefslogtreecommitdiff
path: root/addons/web/static/src
diff options
context:
space:
mode:
authorGéry Debongnie <ged@odoo.com>2014-10-27 15:09:27 +0100
committerGéry Debongnie <ged@odoo.com>2014-10-29 08:38:19 +0100
commit5fc76ff7a9261d5805cb950a8ec106c06fad7b00 (patch)
treeb84fc7433ed2592f4cda107278bb1d1d8634a446 /addons/web/static/src
parent488bb6e803faf7a27b9eb82f3efd5dc8458b472d (diff)
[FIX] fixes an issue with non-displayed favorite filter
If someone removes the last filter in favorites menu, it removed the divider, and therefore couldn't properly add a new filter.
Diffstat (limited to 'addons/web/static/src')
-rw-r--r--addons/web/static/src/js/search.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/addons/web/static/src/js/search.js b/addons/web/static/src/js/search.js
index 366cae1f829..86412907f4f 100644
--- a/addons/web/static/src/js/search.js
+++ b/addons/web/static/src/js/search.js
@@ -1725,8 +1725,7 @@ instance.web.search.FavoriteMenu = instance.web.Widget.extend({
append_filter: function (filter) {
var self = this,
key = this.key_for(filter),
- $filter,
- warning = _t("This filter is global and will be removed for everybody if you continue.");
+ $filter;
this.$divider.show();
if (key in this.$filters) {
@@ -1778,7 +1777,7 @@ instance.web.search.FavoriteMenu = instance.web.Widget.extend({
delete self.$filters[key];
delete self.filters[key];
if (_.isEmpty(self.filters)) {
- self.$('li.divider').remove();
+ self.$divider.hide();
}
});
},