minor refactoring...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2012-07-31 17:41:54 +04:00
parent d51f567a15
commit ad3ed175aa

View File

@ -92,8 +92,13 @@ function setCurrentImage(){
// position the field and ribbons... // position the field and ribbons...
centerSquare() centerSquare()
// center other ribbons relative to current image... alignRibbons()
}
// center other ribbons relative to current image...
function alignRibbons(){
// XXX only two ribbons are positioned at this point... // XXX only two ribbons are positioned at this point...
// XXX might be goot to move this to a more generic location...
var id = $('.current.image').attr('id') var id = $('.current.image').attr('id')
var directions = ['prev', 'next'] var directions = ['prev', 'next']
for(var i in directions){ for(var i in directions){