use list settings from args if present, fixes #2965

This commit is contained in:
j 2016-08-25 14:11:16 +02:00
parent 97a46dceb0
commit e23051fe50

View file

@ -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];
}
});
}