From 30176856c7c6347a261ac224e0d081932936c959 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Sun, 17 Jun 2012 16:51:02 +0400 Subject: [PATCH] minor cleanup... Signed-off-by: Alex A. Naanou --- ui/gallery-prototype.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ui/gallery-prototype.js b/ui/gallery-prototype.js index 11047a2c..52f3e266 100755 --- a/ui/gallery-prototype.js +++ b/ui/gallery-prototype.js @@ -1,5 +1,6 @@ // XXX need a uniform way to address images (filename?) +// XXX move this into the actual html... $(document).ready(setup); @@ -108,7 +109,6 @@ function loadImages(json){ /*************************************************** Event Handlers **/ function handleImageClick(e) { - var cur = $(this) // switch classes... @@ -164,6 +164,7 @@ var keys = { helpShowOnUnknownKey: true } +// XXX revise... function handleKeys(event){ var code = event.keyCode, fn = $.inArray; var _ = (fn(code, keys.closeKeys) >= 0) ? function(){}() @@ -293,6 +294,7 @@ function focusBelowRibbon(){ /********************************************************** Actions **/ // basic actions... +// NOTE: below 'direction' is meant in the html sence, i.e. next/prev... // create ribbon above/below helpers... function createRibbon(direction){