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({ ? Ox.PDFViewer({
height: dialogHeight, height: dialogHeight,
page: settings.page, page: settings.page,
url: pandora.getMediaURL('/documents/' + item.id + '/' url: '/documents/' + item.id + '/'
+ item.name + '.' + item.extension), + item.name + '.' + item.extension,
width: dialogWidth, width: dialogWidth,
zoom: settings.zoom zoom: settings.zoom
}) })