minor fixes

This commit is contained in:
rolux 2011-09-03 23:29:16 +00:00
parent ffd14620c9
commit 83ac59857e

View file

@ -635,13 +635,14 @@ pandora.ui.list = function() { // fixme: remove view argument
}, function(result) {
var folder;
if (drag.action == 'move') {
folder = drag.source.status == 'private' ? 'personal' : drag.source.status;
folder = drag.source.status != 'featured' ? 'personal' : 'featured';
pandora.$ui.folderList[folder].value(
drag.source.id, 'items',
pandora.$ui.folderList[folder].value(drag.source.id, 'items') - data.ids.length
);
}
folder = drag.target.status == 'private' ? 'personal' : drag.target.status;
folder = drag.target.status != 'featured' ? 'personal' : 'featured';
Ox.print(drag.source.status, '//////', drag.target.status)
pandora.$ui.folderList[folder].value(
drag.target.id, 'items',
result.data.items