mirror of
https://github.com/flynx/PortableMag.git
synced 2025-10-29 03:00:09 +00:00
minor fix...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
aebfc2791d
commit
b5da226ccd
@ -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)
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user