fix a bug that would corrupt user.ui

This commit is contained in:
rolux 2011-10-26 08:29:07 +00:00
parent 656c4f7201
commit b1d408c7b8

View file

@ -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