forked from 0x2620/pandora
temporarily fix pdf page calculation in text panel
This commit is contained in:
parent
3c6ab6236f
commit
d044138d43
1 changed files with 1 additions and 2 deletions
|
@ -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>')
|
||||
|
|
Loading…
Reference in a new issue