diff --git a/static/js/textPanel.js b/static/js/textPanel.js index 2938adcd..f1bf88e1 100644 --- a/static/js/textPanel.js +++ b/static/js/textPanel.js @@ -327,8 +327,8 @@ pandora.ui.textPDF = function(text) { var that = Ox.Element(), $iframe, - page = pandora.user.ui.textPositions[pandora.user.ui.text] ? - pandora.user.ui.textPositions[pandora.user.ui.text][0] : 1, + page = pandora.user.ui.texts[pandora.user.ui.text].position ? + pandora.user.ui.texts[pandora.user.ui.text].position[0] : 1, url = '/texts/' + pandora.user.ui.text + '/text.pdf.html#page=' + page; if (text.uploaded) { $iframe = Ox.Element('