minimal support for cbr/cbz documents
This commit is contained in:
parent
94d57028cd
commit
28f36879bc
14 changed files with 3312 additions and 6 deletions
|
|
@ -220,6 +220,16 @@ pandora.ui.documentDialog = function(options) {
|
|||
width: dialogWidth,
|
||||
zoom: 'fit'
|
||||
})
|
||||
: Ox.contains(['cbr', 'cbz'], item.extension)
|
||||
? Ox.CBRViewer({
|
||||
height: dialogHeight,
|
||||
page: pandora.user.ui.documents[item.id]
|
||||
? pandora.user.ui.documents[item.id].position
|
||||
: 1,
|
||||
url: '/documents/' + item.id + '/' + pandora.safeDocumentName(item.title) + '.' + item.extension + '?' + item.modified,
|
||||
width: dialogWidth,
|
||||
zoom: 'fit'
|
||||
})
|
||||
: item.extension == 'html'
|
||||
? pandora.$ui.textPanel = pandora.ui.textPanel(item)
|
||||
: Ox.ImageViewer({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue