use media url for documents
This commit is contained in:
parent
d6c10eb377
commit
3f2299d831
2 changed files with 5 additions and 5 deletions
|
@ -159,8 +159,8 @@ pandora.ui.documentDialog = function(options) {
|
|||
? Ox.PDFViewer({
|
||||
height: dialogHeight,
|
||||
page: settings.page,
|
||||
url: '/documents/' + item.id + '/'
|
||||
+ item.name + '.' + item.extension,
|
||||
url: pandora.getMediaURL('/documents/' + item.id + '/'
|
||||
+ item.name + '.' + item.extension),
|
||||
width: dialogWidth,
|
||||
zoom: settings.zoom
|
||||
})
|
||||
|
@ -169,8 +169,8 @@ pandora.ui.documentDialog = function(options) {
|
|||
height: dialogHeight,
|
||||
imageHeight: item.dimensions[1],
|
||||
imagePreviewURL: pandora.getMediaURL('/documents/' + item.id + '/256p.jpg'),
|
||||
imageURL: '/documents/' + item.id + '/'
|
||||
+ item.name + '.' + item.extension,
|
||||
imageURL: pandora.getMediaURL('/documents/' + item.id + '/'
|
||||
+ item.name + '.' + item.extension),
|
||||
imageWidth: item.dimensions[0],
|
||||
width: dialogWidth,
|
||||
zoom: settings.zoom
|
||||
|
|
|
@ -711,7 +711,7 @@ pandora.ui.documentsPanel = function(options) {
|
|||
id: data.id,
|
||||
info: info,
|
||||
title: data.name,
|
||||
url: '/documents/' + data.id + '/256p.jpg',
|
||||
url: pandora.getMediaURL('/documents/' + data.id + '/256p.jpg'),
|
||||
width: Math.round(data.ratio > 1 ? size : size * data.ratio)
|
||||
};
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue