mirror of
				https://github.com/flynx/ImageGrid.git
				synced 2025-10-30 19:00:09 +00:00 
			
		
		
		
	minor tweaks...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
		
							parent
							
								
									b1684c2d90
								
							
						
					
					
						commit
						9af9dcdc5f
					
				| @ -821,8 +821,7 @@ var UIIntrospectionActions = actions.Actions({ | |||||||
| 
 | 
 | ||||||
| 			return res | 			return res | ||||||
| 		})], | 		})], | ||||||
| 
 | 	showCode: ['- Help/Show action code...', | ||||||
| 	showCode: ['- Help/', |  | ||||||
| 		makeUIDialog(function(action){ | 		makeUIDialog(function(action){ | ||||||
| 			action = action instanceof Array ? action[0] : action | 			action = action instanceof Array ? action[0] : action | ||||||
| 			return $('<div>') | 			return $('<div>') | ||||||
| @ -833,6 +832,7 @@ var UIIntrospectionActions = actions.Actions({ | |||||||
| 		})], | 		})], | ||||||
| 
 | 
 | ||||||
| 	// XXX not final...
 | 	// XXX not final...
 | ||||||
|  | 	// XXX should we list feature actions???
 | ||||||
| 	showFeatureDoc: ['Help/Feature help...', | 	showFeatureDoc: ['Help/Feature help...', | ||||||
| 		makeUIDialog(function(features){ | 		makeUIDialog(function(features){ | ||||||
| 			features = features || this.features.features | 			features = features || this.features.features | ||||||
| @ -924,7 +924,8 @@ var UIIntrospectionActions = actions.Actions({ | |||||||
| 		core.doc`Show feature load information...`, | 		core.doc`Show feature load information...`, | ||||||
| 		makeUIDialog(function(){ | 		makeUIDialog(function(){ | ||||||
| 			var that = this | 			var that = this | ||||||
| 			return browse.makeLister(null, function(path, make){ | 
 | ||||||
|  | 			var dialog = browse.makeLister(null, function(path, make){ | ||||||
| 				var features = that.features || {} | 				var features = that.features || {} | ||||||
| 
 | 
 | ||||||
| 				// XXX get feature doc...
 | 				// XXX get feature doc...
 | ||||||
| @ -933,6 +934,7 @@ var UIIntrospectionActions = actions.Actions({ | |||||||
| 					;(list || []) | 					;(list || []) | ||||||
| 						.forEach(function(tag){ | 						.forEach(function(tag){ | ||||||
| 							make(tag) | 							make(tag) | ||||||
|  | 								.attr('feature', tag) | ||||||
| 								.on('open', function(){ that.showFeatureDoc(tag) }) | 								.on('open', function(){ that.showFeatureDoc(tag) }) | ||||||
| 						}) } | 						}) } | ||||||
| 
 | 
 | ||||||
| @ -951,6 +953,16 @@ var UIIntrospectionActions = actions.Actions({ | |||||||
| 					// XXX conflicts...
 | 					// XXX conflicts...
 | ||||||
| 				} | 				} | ||||||
| 			}) | 			}) | ||||||
|  | 
 | ||||||
|  | 			// handle '?' button to browse path...
 | ||||||
|  | 			dialog.showDoc = function(){ | ||||||
|  | 				var feature = dialog.select('!').attr('feature') | ||||||
|  | 				feature  | ||||||
|  | 					&& that.showFeatureDoc(feature) | ||||||
|  | 			} | ||||||
|  | 			dialog.keyboard.handler('General', '?', 'showDoc') | ||||||
|  | 
 | ||||||
|  | 			return dialog | ||||||
| 		})], | 		})], | ||||||
| 
 | 
 | ||||||
| 	// XXX is this the right way to go???
 | 	// XXX is this the right way to go???
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user