mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 02:10:08 +00:00
minor refactoring...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
d51f567a15
commit
ad3ed175aa
@ -92,8 +92,13 @@ function setCurrentImage(){
|
||||
// position the field and ribbons...
|
||||
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 might be goot to move this to a more generic location...
|
||||
var id = $('.current.image').attr('id')
|
||||
var directions = ['prev', 'next']
|
||||
for(var i in directions){
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user