minor fix...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2013-02-26 00:29:55 +04:00
parent aebfc2791d
commit b5da226ccd

View File

@ -371,12 +371,12 @@ function getMagazineOffset(page, scale, align){
function getPageNumber(page){
page = $(page)
if(!page.hasClass('page')){
page = page.parents('.page')
}
// a page is given explicitly, get the next one...
if(page != null){
page = $(page)
if(!page.hasClass('page')){
page = page.parents('.page')
}
return $('.page').index(page)
}