forked from 0x2620/pandora
minor fixes
This commit is contained in:
parent
ffd14620c9
commit
83ac59857e
1 changed files with 3 additions and 2 deletions
|
@ -635,13 +635,14 @@ pandora.ui.list = function() { // fixme: remove view argument
|
||||||
}, function(result) {
|
}, function(result) {
|
||||||
var folder;
|
var folder;
|
||||||
if (drag.action == 'move') {
|
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(
|
pandora.$ui.folderList[folder].value(
|
||||||
drag.source.id, 'items',
|
drag.source.id, 'items',
|
||||||
pandora.$ui.folderList[folder].value(drag.source.id, 'items') - data.ids.length
|
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(
|
pandora.$ui.folderList[folder].value(
|
||||||
drag.target.id, 'items',
|
drag.target.id, 'items',
|
||||||
result.data.items
|
result.data.items
|
||||||
|
|
Loading…
Reference in a new issue