mirror of
				https://github.com/flynx/ImageGrid.git
				synced 2025-10-31 03:10:07 +00:00 
			
		
		
		
	minor cleanup...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
		
							parent
							
								
									39afc04751
								
							
						
					
					
						commit
						30176856c7
					
				| @ -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){ | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user