forked from 0x2620/pandora
fix a bug that would corrupt user.ui
This commit is contained in:
parent
656c4f7201
commit
b1d408c7b8
1 changed files with 1 additions and 1 deletions
|
@ -65,7 +65,7 @@ pandora.UI = (function() {
|
||||||
Ox.forEach(listSettings, function(listSetting, setting) {
|
Ox.forEach(listSettings, function(listSetting, setting) {
|
||||||
if (!pandora.user.ui.lists[list]) {
|
if (!pandora.user.ui.lists[list]) {
|
||||||
// add default list setting and copy to settings
|
// add default list setting and copy to settings
|
||||||
add['lists.' + that.encode(list)][listSetting] = pandora.site.user.ui[setting];
|
add['lists.' + that.encode(list) + '.' + listSetting] = pandora.site.user.ui[setting];
|
||||||
add[setting] = pandora.site.user.ui[setting];
|
add[setting] = pandora.site.user.ui[setting];
|
||||||
} else {
|
} else {
|
||||||
// copy lists setting to settings
|
// copy lists setting to settings
|
||||||
|
|
Loading…
Reference in a new issue