temporarily fix pdf page calculation in text panel

This commit is contained in:
rolux 2013-08-07 15:24:29 +00:00
parent 3c6ab6236f
commit d044138d43

View File

@ -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('<iframe>')