From 018e3d23d06c129f7a880998071c992fc81e49e8 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Sat, 24 Jan 2015 15:50:46 +0530 Subject: [PATCH] dont load pdf from main url, to avoid cross origin permissions --- static/js/documentDialog.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static/js/documentDialog.js b/static/js/documentDialog.js index b3c080be..fc35088c 100644 --- a/static/js/documentDialog.js +++ b/static/js/documentDialog.js @@ -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 })