mirror of
				https://github.com/flynx/ImageGrid.git
				synced 2025-10-31 03:10:07 +00:00 
			
		
		
		
	minor changes...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
		
							parent
							
								
									a7b557a97e
								
							
						
					
					
						commit
						bb92cfde46
					
				| @ -40,14 +40,24 @@ ISSUES: | |||||||
| <script> | <script> | ||||||
| 
 | 
 | ||||||
| $(document).ready(function() { | $(document).ready(function() { | ||||||
|  | 	// current state... | ||||||
|  | 	if($('.current-ribbon').length == 0){ | ||||||
|  | 		$('.ribbon').first().addClass('current-ribbon') | ||||||
|  | 	} | ||||||
|  | 	if($('.current-image').length == 0){ | ||||||
|  | 		$('.current-ribbon').children('.image').first().addClass('current-image') | ||||||
|  | 	} | ||||||
|  | 
 | ||||||
| 	// setup event handlers... | 	// setup event handlers... | ||||||
| 	$(document).keydown(handleKeys) | 	$(document).keydown(handleKeys) | ||||||
| 	$(".image").click(handleClick) | 	$(".image").click(handleClick) | ||||||
| 
 | 
 | ||||||
|  | 
 | ||||||
| 	// set the default position... | 	// set the default position... | ||||||
| 	$('.current-image').click() | 	$('.current-image').click() | ||||||
| }); | }); | ||||||
| 
 | 
 | ||||||
|  | 
 | ||||||
| function handleClick(e) { | function handleClick(e) { | ||||||
| 
 | 
 | ||||||
| 	var cur = $(this) | 	var cur = $(this) | ||||||
| @ -442,8 +452,8 @@ function demoteImage(){ | |||||||
| <div class="container"> | <div class="container"> | ||||||
| 	<div class="field"> | 	<div class="field"> | ||||||
| 		<!-- XXX make focusing on a first image and ribbon automatic... --> | 		<!-- XXX make focusing on a first image and ribbon automatic... --> | ||||||
| 		<div class="ribbon current-ribbon"> | 		<div class="ribbon"> | ||||||
| 			<div class="image mock-image current-image"></div> | 			<div class="image mock-image"></div> | ||||||
| 			<div class="image mock-image"></div> | 			<div class="image mock-image"></div> | ||||||
| 			<div class="image mock-image"></div> | 			<div class="image mock-image"></div> | ||||||
| 			<div class="image mock-image"></div> | 			<div class="image mock-image"></div> | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user