From ad3ed175aa011f1dbd1e5b6afcb92c309c2e013d Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Tue, 31 Jul 2012 17:41:54 +0400 Subject: [PATCH] minor refactoring... Signed-off-by: Alex A. Naanou --- ui/gallery-prototype.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ui/gallery-prototype.js b/ui/gallery-prototype.js index 14da6938..688917b1 100755 --- a/ui/gallery-prototype.js +++ b/ui/gallery-prototype.js @@ -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){