add embed button to pdf viewer
This commit is contained in:
parent
5bc0b70d73
commit
47b348f724
5 changed files with 51 additions and 9 deletions
|
|
@ -95,6 +95,13 @@ pandora.ui.document = function() {
|
|||
{position: $content.getArea().map(Math.round)}
|
||||
);
|
||||
},
|
||||
embed: function(data) {
|
||||
var id = item.id;
|
||||
pandora.$ui.embedDocumentDialog = pandora.ui.embedDocumentDialog(
|
||||
id,
|
||||
data.page
|
||||
).open();
|
||||
},
|
||||
key_escape: function() {
|
||||
// ...
|
||||
},
|
||||
|
|
|
|||
|
|
@ -222,6 +222,13 @@ pandora.ui.documentDialog = function(options) {
|
|||
{position: $content.getArea().map(Math.round)}
|
||||
);
|
||||
},
|
||||
embed: function(data) {
|
||||
var id = options.items[options.index].id;
|
||||
pandora.$ui.embedDocumentDialog = pandora.ui.embedDocumentDialog(
|
||||
id,
|
||||
data.page
|
||||
).open();
|
||||
},
|
||||
key_escape: function() {
|
||||
pandora.$ui.documentDialog.close();
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue