From d044138d43d2a5762a20ec9964fb5bf9fc011ae3 Mon Sep 17 00:00:00 2001 From: rolux Date: Wed, 7 Aug 2013 15:24:29 +0000 Subject: [PATCH] temporarily fix pdf page calculation in text panel --- static/js/textPanel.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/static/js/textPanel.js b/static/js/textPanel.js index f1bf88e1..496e4b27 100644 --- a/static/js/textPanel.js +++ b/static/js/textPanel.js @@ -327,8 +327,7 @@ pandora.ui.textPDF = function(text) { var that = Ox.Element(), $iframe, - page = pandora.user.ui.texts[pandora.user.ui.text].position ? - pandora.user.ui.texts[pandora.user.ui.text].position[0] : 1, + page = pandora.user.ui.texts[pandora.user.ui.text].position || 1, url = '/texts/' + pandora.user.ui.text + '/text.pdf.html#page=' + page; if (text.uploaded) { $iframe = Ox.Element('