minor cleanup...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2012-06-17 16:51:02 +04:00
parent 39afc04751
commit 30176856c7

View File

@ -1,5 +1,6 @@
// XXX need a uniform way to address images (filename?) // XXX need a uniform way to address images (filename?)
// XXX move this into the actual html...
$(document).ready(setup); $(document).ready(setup);
@ -108,7 +109,6 @@ function loadImages(json){
/*************************************************** Event Handlers **/ /*************************************************** Event Handlers **/
function handleImageClick(e) { function handleImageClick(e) {
var cur = $(this) var cur = $(this)
// switch classes... // switch classes...
@ -164,6 +164,7 @@ var keys = {
helpShowOnUnknownKey: true helpShowOnUnknownKey: true
} }
// XXX revise...
function handleKeys(event){ function handleKeys(event){
var code = event.keyCode, fn = $.inArray; var code = event.keyCode, fn = $.inArray;
var _ = (fn(code, keys.closeKeys) >= 0) ? function(){}() var _ = (fn(code, keys.closeKeys) >= 0) ? function(){}()
@ -293,6 +294,7 @@ function focusBelowRibbon(){
/********************************************************** Actions **/ /********************************************************** Actions **/
// basic actions... // basic actions...
// NOTE: below 'direction' is meant in the html sence, i.e. next/prev...
// create ribbon above/below helpers... // create ribbon above/below helpers...
function createRibbon(direction){ function createRibbon(direction){