handle creating edit from items section
This commit is contained in:
parent
4660e8f596
commit
53a3d37d74
1 changed files with 7 additions and 4 deletions
|
@ -14,7 +14,7 @@ pandora.addItem = function() {
|
||||||
|
|
||||||
pandora.addEdit = function() {
|
pandora.addEdit = function() {
|
||||||
// addEdit(isSmart, isFrom) or addEdit(edit) [=duplicate]
|
// addEdit(isSmart, isFrom) or addEdit(edit) [=duplicate]
|
||||||
pandora.addFolderItem.apply(null, ['edit'].concat(Ox.slice(arguments)));
|
pandora.addFolderItem.apply(null, ['edits'].concat(Ox.slice(arguments)));
|
||||||
};
|
};
|
||||||
|
|
||||||
pandora.addFolderItem = function(section) {
|
pandora.addFolderItem = function(section) {
|
||||||
|
@ -36,13 +36,16 @@ pandora.addFolderItem = function(section) {
|
||||||
};
|
};
|
||||||
if (isFrom) {
|
if (isFrom) {
|
||||||
if (!isSmart) {
|
if (!isSmart) {
|
||||||
data.items = isItems
|
data.items = isItems ? ui.listSelection
|
||||||
? ui.listSelection
|
: ui.section == 'items' ? pandora.$ui.clipList.options('selected')
|
||||||
: ui.edits[ui.edit].selection;
|
: ui.editSelection;
|
||||||
} else {
|
} else {
|
||||||
data.query = ui.find;
|
data.query = ui.find;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (ui.section == 'items' && section == 'edits') {
|
||||||
|
pandora.UI.set({section: 'edits'});
|
||||||
|
}
|
||||||
addList();
|
addList();
|
||||||
} else {
|
} else {
|
||||||
list = arguments[1];
|
list = arguments[1];
|
||||||
|
|
Loading…
Reference in a new issue