embed from documents
This commit is contained in:
parent
fbd94867fc
commit
304afad975
1 changed files with 9 additions and 3 deletions
|
@ -900,6 +900,8 @@ pandora.ui.embedDialog = function(/*[url, ]callback*/) {
|
||||||
options.view = 'info';
|
options.view = 'info';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} else if (ui.section == 'documents') {
|
||||||
|
options.view = 'document';
|
||||||
} else if (ui.section == 'edits') {
|
} else if (ui.section == 'edits') {
|
||||||
options.view = 'edit';
|
options.view = 'edit';
|
||||||
} else {
|
} else {
|
||||||
|
@ -907,9 +909,13 @@ pandora.ui.embedDialog = function(/*[url, ]callback*/) {
|
||||||
}
|
}
|
||||||
options.mapMode = !ui.item ? 'find' : 'item';
|
options.mapMode = !ui.item ? 'find' : 'item';
|
||||||
options.item = ui.item;
|
options.item = ui.item;
|
||||||
options.document = ui.documentsSelection[ui.item] && ui.documentsSelection[ui.item].length
|
if (ui.section == 'documents') {
|
||||||
? ui.documentsSelection[ui.item][0]
|
options.document = ui.document;
|
||||||
: '';
|
} else {
|
||||||
|
options.document = ui.documentsSelection[ui.item] && ui.documentsSelection[ui.item].length
|
||||||
|
? ui.documentsSelection[ui.item][0]
|
||||||
|
: '';
|
||||||
|
}
|
||||||
options.list = ui._list;
|
options.list = ui._list;
|
||||||
options.edit = ui.edit;
|
options.edit = ui.edit;
|
||||||
options.text = ui.text;
|
options.text = ui.text;
|
||||||
|
|
Loading…
Reference in a new issue