minor fixes

This commit is contained in:
rlx 2011-09-03 23:29:16 +00:00
parent 72f0a1420f
commit c568f1f51d

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