mirror of
				https://github.com/flynx/ImageGrid.git
				synced 2025-10-31 11:20:09 +00:00 
			
		
		
		
	added .reverseRibbons() action...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
		
							parent
							
								
									29c9fa8ed5
								
							
						
					
					
						commit
						84da434226
					
				| @ -898,6 +898,10 @@ module.DataPrototype = { | |||||||
| 		return this | 		return this | ||||||
| 	}, | 	}, | ||||||
| 
 | 
 | ||||||
|  | 	reverseRibbons: function(){ | ||||||
|  | 		this.ribbon_order.reverse() | ||||||
|  | 	}, | ||||||
|  | 
 | ||||||
| 	// Shift image...
 | 	// Shift image...
 | ||||||
| 	//
 | 	//
 | ||||||
| 	//	Shift image to target position:
 | 	//	Shift image to target position:
 | ||||||
|  | |||||||
| @ -292,8 +292,11 @@ actions.Actions({ | |||||||
| 			this.focusImage() | 			this.focusImage() | ||||||
| 		}], | 		}], | ||||||
| 	 | 	 | ||||||
| 	reverseImages: [ | 	reverseImages: ['Reverse image order', | ||||||
| 		function(){ this.data.reverseImages() }], | 		function(){ this.data.reverseImages() }], | ||||||
|  | 	reverseRibbons: ['Reverse ribbon order', | ||||||
|  | 		function(){ this.data.reverseRibbons() }], | ||||||
|  | 
 | ||||||
| 
 | 
 | ||||||
| 	// XXX this also requires images...
 | 	// XXX this also requires images...
 | ||||||
| 	sortImages: [ | 	sortImages: [ | ||||||
| @ -549,6 +552,13 @@ actions.Actions(Client, { | |||||||
| 				this.ribbons.restoreTransitions() | 				this.ribbons.restoreTransitions() | ||||||
| 			} | 			} | ||||||
| 		}], | 		}], | ||||||
|  | 	reverseRibbons: [ | ||||||
|  | 		function(target){ | ||||||
|  | 			return function(){ | ||||||
|  | 				// XXX this is cheating...
 | ||||||
|  | 				this.reload() | ||||||
|  | 			} | ||||||
|  | 		}], | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| 	// basic image editing...
 | 	// basic image editing...
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user