minor tweeks...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2013-03-03 03:17:45 +04:00
parent 168eb725fb
commit ccd7e6ecfa

View File

@ -245,6 +245,23 @@ function setupEditor(){
}) })
// move the page indicator...
// NOTE: this is to be used for page-specific toolbars etc.
$('.viewer')
.on('pageChanged', function(){
var cur = $('.current.page')
var indicator = $('.current-page-indicator')
var shift = getElementShift($('.magazine'))
// XXX this is a stub...
// reverse the align...
indicator
.width(cur.width())
.height(cur.height())
.css({
left: getPageInMagazineOffset(cur),
top: 0,
})
})
} }
function clearEditor(){ function clearEditor(){
$('.current-page-indicator').children().remove() $('.current-page-indicator').children().remove()
@ -347,23 +364,6 @@ $(document).ready(function(){
.on('magazineDataLoaded', loadMagazineChrome) .on('magazineDataLoaded', loadMagazineChrome)
// move the page indicator...
// NOTE: this is to be used for page-specific toolbars etc.
.on('pageChanged', function(){
var cur = $('.current.page')
var indicator = $('.current-page-indicator')
var shift = getElementShift($('.magazine'))
// XXX this is a stub...
// reverse the align...
indicator
.width(cur.width())
.height(cur.height())
.css({
left: getPageInMagazineOffset(cur),
top: 0,
})
})
$('.viewer').css('overflow', 'hidden') $('.viewer').css('overflow', 'hidden')