summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js
diff options
context:
space:
mode:
authorGéry Debongnie <ged@odoo.com>2014-10-15 15:01:12 +0200
committerGéry Debongnie <ged@odoo.com>2014-10-21 09:33:52 +0200
commitd87f760a2c05495a68c3593dbca07bea20041388 (patch)
treedb9433e226904ebb7d00ac0897d86a0a22f20d60 /addons/web/static/src/js
parentd82ca918cd0f131959615150bba1930cb9c83fe5 (diff)
[FIX] correctly check default/shared filters
in searchview. They were swapped in the UI, and not in the code. It also shows that using position as reference is fragile.
Diffstat (limited to 'addons/web/static/src/js')
-rw-r--r--addons/web/static/src/js/search.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/web/static/src/js/search.js b/addons/web/static/src/js/search.js
index de839036d06..9556ba650b8 100644
--- a/addons/web/static/src/js/search.js
+++ b/addons/web/static/src/js/search.js
@@ -1625,8 +1625,8 @@ instance.web.search.FavoriteMenu = instance.web.Widget.extend({
save_favorite: function () {
var self = this,
filter_name = this.$inputs[0].value,
- shared_filter = this.$inputs[1].checked,
- default_filter = this.$inputs[2].checked;
+ default_filter = this.$inputs[1].checked,
+ shared_filter = this.$inputs[2].checked;
if (!filter_name.length){
this.do_warn(_t("Error"), _t("Filter name is required."));
this.$inputs.first().focus();