From f55ee96871fd5d2bf3736b2ee8e4a25efed07e94 Mon Sep 17 00:00:00 2001 From: rolux Date: Wed, 7 Aug 2013 14:44:27 +0000 Subject: [PATCH] text panel: textPositions -> text; encode ui.text --- static/js/textPanel.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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('