forked from 0x2620/pandora
add document collection from results
This commit is contained in:
parent
e4a54b3cd4
commit
a309a9c3f5
1 changed files with 2 additions and 3 deletions
|
@ -39,7 +39,6 @@ pandora.addFolderItem = function(section) {
|
||||||
if (isItems) {
|
if (isItems) {
|
||||||
data.items = ui.listSelection;
|
data.items = ui.listSelection;
|
||||||
} else if (section == 'documents') {
|
} else if (section == 'documents') {
|
||||||
//fixme
|
|
||||||
data.items = ui.collectionSelection;
|
data.items = ui.collectionSelection;
|
||||||
} else {
|
} else {
|
||||||
data.clips = pandora.getClipData(
|
data.clips = pandora.getClipData(
|
||||||
|
@ -49,7 +48,7 @@ pandora.addFolderItem = function(section) {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
data.query = ui.find;
|
data.query = isItems ? ui.find : ui.findDocuments;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (ui.section == 'items' && section == 'edits') {
|
if (ui.section == 'items' && section == 'edits') {
|
||||||
|
@ -140,7 +139,7 @@ pandora.addFolderItem = function(section) {
|
||||||
documents: 'addCollection',
|
documents: 'addCollection',
|
||||||
edits: 'addEdit'
|
edits: 'addEdit'
|
||||||
}[section]](data, function(result) {
|
}[section]](data, function(result) {
|
||||||
getPosterFrames(result.data.id);
|
section == 'documents' ? reloadFolder(newList) : getPosterFrames(result.data.id);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
function getPosterFrames(newList) {
|
function getPosterFrames(newList) {
|
||||||
|
|
Loading…
Reference in a new issue