dont load pdf from main url, to avoid cross origin permissions

This commit is contained in:
j 2015-01-24 15:50:46 +05:30
parent 708e6e5b2c
commit 018e3d23d0

View file

@ -159,8 +159,8 @@ pandora.ui.documentDialog = function(options) {
? Ox.PDFViewer({
height: dialogHeight,
page: settings.page,
url: pandora.getMediaURL('/documents/' + item.id + '/'
+ item.name + '.' + item.extension),
url: '/documents/' + item.id + '/'
+ item.name + '.' + item.extension,
width: dialogWidth,
zoom: settings.zoom
})