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 // if find has changed list
Ox.forEach(listSettings, function(listSetting, setting) { Ox.forEach(listSettings, function(listSetting, setting) {
// then for each setting that corresponds to a list 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] !pandora.user.ui.lists[list]
|| Ox.isUndefined(pandora.user.ui.lists[list][listSetting]) || Ox.isUndefined(pandora.user.ui.lists[list][listSetting])
) { ) {
@ -97,7 +99,7 @@ pandora.UI = (function() {
add[setting] = pandora.site.user.ui[setting]; add[setting] = pandora.site.user.ui[setting];
} else { } else {
// or the existing list setting // or the existing list setting
add[setting] = pandora.user.ui.lists[list][listSetting] add[setting] = pandora.user.ui.lists[list][listSetting];
} }
}); });
} }