mirror of
				https://github.com/flynx/ImageGrid.git
				synced 2025-10-31 03:10:07 +00:00 
			
		
		
		
	minor tweaks...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
		
							parent
							
								
									8982365b03
								
							
						
					
					
						commit
						fadd474101
					
				| @ -54,7 +54,7 @@ var StatusBarActions = actions.Actions({ | |||||||
| 		'status-bar-items': [ | 		'status-bar-items': [ | ||||||
| 			'index', | 			'index', | ||||||
| 			'gid', | 			'gid', | ||||||
| 			//'path',
 | 			'path', | ||||||
| 
 | 
 | ||||||
| 			// separates left/right aligned elements...
 | 			// separates left/right aligned elements...
 | ||||||
| 			'---', | 			'---', | ||||||
| @ -226,10 +226,12 @@ var StatusBarActions = actions.Actions({ | |||||||
| 				text = gid || '-' | 				text = gid || '-' | ||||||
| 
 | 
 | ||||||
| 			// path...
 | 			// path...
 | ||||||
| 			// XXX
 | 			// XXX use generic, platform independent path processing...
 | ||||||
| 			} else if(type == 'path'){ | 			} else if(type == 'path'){ | ||||||
| 				text = img && img.path || '---' | 				text = (img && ((img.base_path || '') +'/'+ img.path) || '---') | ||||||
| 				txt = text | 					// remove /./
 | ||||||
|  | 					.replace(/[\\\/]\.[\\\/]/, '/') | ||||||
|  | 				txt = text.split(/[\\\/]/).pop() | ||||||
| 			} | 			} | ||||||
| 
 | 
 | ||||||
| 			item.find('.shown').text(txt) | 			item.find('.shown').text(txt) | ||||||
|  | |||||||
| @ -1132,7 +1132,7 @@ var PartialRibbonsActions = actions.Actions({ | |||||||
| 					&& that.images.getBestPreview(c, size, true).url | 					&& that.images.getBestPreview(c, size, true).url | ||||||
| 			} | 			} | ||||||
| 
 | 
 | ||||||
| 			// get a stet of paths...
 | 			// get a set of paths...
 | ||||||
| 			// NOTE: we are also ordering the resulting gids by their 
 | 			// NOTE: we are also ordering the resulting gids by their 
 | ||||||
| 			// 		distance from target...
 | 			// 		distance from target...
 | ||||||
| 			var _get = function(i, lst, source, radius, oddity, step){ | 			var _get = function(i, lst, source, radius, oddity, step){ | ||||||
| @ -1261,7 +1261,6 @@ var PartialRibbonsActions = actions.Actions({ | |||||||
| 			// no threshold means force load...
 | 			// no threshold means force load...
 | ||||||
| 			if(threshold == 0  | 			if(threshold == 0  | ||||||
| 					// the target is not loaded...
 | 					// the target is not loaded...
 | ||||||
| 					//|| this.ribbons.getImage(target).length == 0
 |  | ||||||
| 					|| img.length == 0 | 					|| img.length == 0 | ||||||
| 					// passed hard threshold on the right...
 | 					// passed hard threshold on the right...
 | ||||||
| 					|| (nl < w && na > nl)  | 					|| (nl < w && na > nl)  | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user