mirror of
				https://github.com/flynx/ImageGrid.git
				synced 2025-10-31 03:10:07 +00:00 
			
		
		
		
	some refactoring...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
		
							parent
							
								
									b631d1c125
								
							
						
					
					
						commit
						0503a72993
					
				| @ -6,6 +6,16 @@ | |||||||
| 
 | 
 | ||||||
| //var DEBUG = DEBUG != null ? DEBUG : true
 | //var DEBUG = DEBUG != null ? DEBUG : true
 | ||||||
| 
 | 
 | ||||||
|  | // XXX move this to the config...
 | ||||||
|  | var PREVIEW_SIZES = [ | ||||||
|  | 	// NOTE: this is first so as to prevent the hi-res from loading...
 | ||||||
|  | 	// XXX this is best to be screen sized or just a little bigger...
 | ||||||
|  | 	1280, | ||||||
|  | 	150, | ||||||
|  | 	350, | ||||||
|  | 	900 | ||||||
|  | ] | ||||||
|  | 
 | ||||||
| 
 | 
 | ||||||
| /*********************************************************************/ | /*********************************************************************/ | ||||||
| 
 | 
 | ||||||
| @ -132,12 +142,7 @@ if(window.CEF_dumpJSON != null){ | |||||||
| 
 | 
 | ||||||
| 		// prepare the sizes we are going to be working with...
 | 		// prepare the sizes we are going to be working with...
 | ||||||
| 		if(sizes == null){ | 		if(sizes == null){ | ||||||
| 			// XXX get real sizes from config...
 | 			sizes = PREVIEW_SIZES | ||||||
| 			var sizes = [ |  | ||||||
| 					150, |  | ||||||
| 					350, |  | ||||||
| 					900 |  | ||||||
| 				] |  | ||||||
| 		} else if(typeof(sizes) == typeof(123)){ | 		} else if(typeof(sizes) == typeof(123)){ | ||||||
| 			sizes = [ sizes ] | 			sizes = [ sizes ] | ||||||
| 		} | 		} | ||||||
|  | |||||||
							
								
								
									
										3
									
								
								ui/ui.js
									
									
									
									
									
								
							
							
						
						
									
										3
									
								
								ui/ui.js
									
									
									
									
									
								
							| @ -381,6 +381,7 @@ function hideOverlay(root){ | |||||||
| var FIELD_TYPES = { | var FIELD_TYPES = { | ||||||
| 	// format: 
 | 	// format: 
 | ||||||
| 	// 		string
 | 	// 		string
 | ||||||
|  | 	// XXX add datalist option...
 | ||||||
| 	text: { | 	text: { | ||||||
| 		type: 'text', | 		type: 'text', | ||||||
| 		text: null, | 		text: null, | ||||||
| @ -454,6 +455,7 @@ var FIELD_TYPES = { | |||||||
| 	// NOTE: this will not work without node-webkit...
 | 	// NOTE: this will not work without node-webkit...
 | ||||||
| 	// format: 
 | 	// format: 
 | ||||||
| 	// 		{ dir: <default-path> }
 | 	// 		{ dir: <default-path> }
 | ||||||
|  | 	// XXX add datalist option...
 | ||||||
| 	ndir: { | 	ndir: { | ||||||
| 		type: 'ndir', | 		type: 'ndir', | ||||||
| 		text: null, | 		text: null, | ||||||
| @ -755,6 +757,7 @@ function getDir(message, dfl, btn){ | |||||||
| 
 | 
 | ||||||
| // XXX do reporting...
 | // XXX do reporting...
 | ||||||
| // XXX would be nice to save settings...
 | // XXX would be nice to save settings...
 | ||||||
|  | // 		...might be good to use datalist...
 | ||||||
| function exportPreviewsDialog(state, dfl){ | function exportPreviewsDialog(state, dfl){ | ||||||
| 	dfl = dfl == null ? BASE_URL : dfl | 	dfl = dfl == null ? BASE_URL : dfl | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user