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('