use list settings from args if present, fixes #2965
This commit is contained in:
parent
97a46dceb0
commit
e23051fe50
1 changed files with 4 additions and 2 deletions
|
@ -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];
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue