mirror of
				https://github.com/flynx/ImageGrid.git
				synced 2025-10-31 03:10:07 +00:00 
			
		
		
		
	updated comments and notices...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
		
							parent
							
								
									01d914cd60
								
							
						
					
					
						commit
						7a30c347a2
					
				| @ -88,7 +88,6 @@ var keys = { | ||||
| 
 | ||||
| function handleKeys(event){ | ||||
| 	var code = event.keyCode, fn = $.inArray; | ||||
| 	// XXX | ||||
| 	var _ = (fn(code, keys.closeKeys) >= 0) ? function(){}() | ||||
| 		: (fn(code, keys.nextKeys) >= 0) ? nextImage() | ||||
| 		: (fn(code, keys.previousKeys) >= 0) ? prevImage() | ||||
| @ -136,7 +135,6 @@ function toggleWideView(){ | ||||
| 		$('.wide-view-mode') | ||||
| 			.removeClass('wide-view-mode') | ||||
| 			.one("webkitTransitionEnd oTransitionEnd msTransitionEnd transitionend", function(){ | ||||
| 				// XXX does not animate... | ||||
| 				$('.current-image').click() | ||||
| 				return true | ||||
| 			}); | ||||
| @ -148,7 +146,6 @@ function toggleWideView(){ | ||||
| 			.not('.wide-view-mode') | ||||
| 				.addClass('wide-view-mode') | ||||
| 				.one("webkitTransitionEnd oTransitionEnd msTransitionEnd transitionend", function(){ | ||||
| 					// XXX does not animate... | ||||
| 					$('.current-image').click() | ||||
| 					return true | ||||
| 				}); | ||||
| @ -180,7 +177,6 @@ function focusBelowRibbon(){ | ||||
| 
 | ||||
| 
 | ||||
| // create ribbon above/below helpers... | ||||
| // XXX | ||||
| function createRibbonAbove(){ | ||||
| 	return $('<div class="new-ribbon"></div>') | ||||
| 		.insertBefore('.current-ribbon') | ||||
| @ -238,7 +234,7 @@ function promoteImage(){ | ||||
| 	} | ||||
| 	// XXX sort elements correctly... | ||||
| 	if($('.current-ribbon').children('.image').length == 1){ | ||||
| 		// XXX this adds image to the head while thebelow portion adds it to the tail... | ||||
| 		// XXX this adds image to the head while the below portion adds it to the tail... | ||||
| 		mergeRibbonsDown() | ||||
| 	} else { | ||||
| 		img = $('.current-image') | ||||
| @ -327,7 +323,7 @@ function demoteImage(){ | ||||
| 
 | ||||
| 	.ribbon { | ||||
| 		height: 360px; | ||||
| 		/* XXX make this expand correctly */ | ||||
| 		/* XXX make this expand dynamically */ | ||||
| 		width: 8000px; | ||||
| 		overflow: visible; | ||||
| 		padding-top: 2px; | ||||
| @ -389,6 +385,7 @@ function demoteImage(){ | ||||
| 		opacity: 1.0; | ||||
| 	} | ||||
| 
 | ||||
| 
 | ||||
| 	/* wide view mode */ | ||||
| 
 | ||||
| 	/* XXX not yet working correctly... | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user