From e23051fe50d7d6eab2a69a8595bfbf31c65f89c1 Mon Sep 17 00:00:00 2001 From: j Date: Thu, 25 Aug 2016 14:11:16 +0200 Subject: [PATCH] use list settings from args if present, fixes #2965 --- static/js/UI.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/static/js/UI.js b/static/js/UI.js index 2169e0c67..e5811ba9d 100644 --- a/static/js/UI.js +++ b/static/js/UI.js @@ -89,7 +89,9 @@ pandora.UI = (function() { // if find has changed list Ox.forEach(listSettings, function(listSetting, setting) { // then for each setting that corresponds to a list setting - if ( + if (!Ox.isUndefined(args[setting])) { + add[setting] = args[setting]; + } else if ( !pandora.user.ui.lists[list] || Ox.isUndefined(pandora.user.ui.lists[list][listSetting]) ) { @@ -97,7 +99,7 @@ pandora.UI = (function() { add[setting] = pandora.site.user.ui[setting]; } else { // or the existing list setting - add[setting] = pandora.user.ui.lists[list][listSetting] + add[setting] = pandora.user.ui.lists[list][listSetting]; } }); }