mirror of
				https://github.com/flynx/ImageGrid.git
				synced 2025-10-30 19:00:09 +00:00 
			
		
		
		
	made keyboard help correctly printable (still not final)...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
		
							parent
							
								
									d9ae1bdd0e
								
							
						
					
					
						commit
						39d8c59ad1
					
				| @ -147,6 +147,12 @@ button:hover { | |||||||
|   -ms-user-select: none; |   -ms-user-select: none; | ||||||
|   user-select: none; |   user-select: none; | ||||||
| } | } | ||||||
|  | /* XXX this is a stub for printing help/docs... */ | ||||||
|  | @media print { | ||||||
|  |   .viewer { | ||||||
|  |     display: none; | ||||||
|  |   } | ||||||
|  | } | ||||||
| /****************************************************** Ribbon set ***/ | /****************************************************** Ribbon set ***/ | ||||||
| .ribbon-set { | .ribbon-set { | ||||||
|   position: absolute; |   position: absolute; | ||||||
|  | |||||||
| @ -224,6 +224,14 @@ button:hover { | |||||||
| 	.user-select(none); | 	.user-select(none); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  | /* XXX this is a stub for printing help/docs... */ | ||||||
|  | @media print { | ||||||
|  | 
 | ||||||
|  | .viewer { | ||||||
|  | 	display: none; | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | } | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| /****************************************************** Ribbon set ***/ | /****************************************************** Ribbon set ***/ | ||||||
|  | |||||||
							
								
								
									
										12
									
								
								ui/ui.js
									
									
									
									
									
								
							
							
						
						
									
										12
									
								
								ui/ui.js
									
									
									
									
									
								
							| @ -511,6 +511,9 @@ var FIELD_TYPES = { | |||||||
| //
 | //
 | ||||||
| // see FIELD_TYPES for supported field types.
 | // see FIELD_TYPES for supported field types.
 | ||||||
| //
 | //
 | ||||||
|  | // NOTE: if btn is set to false explicitly then no button will be 
 | ||||||
|  | // 		rendered in the form dialog.
 | ||||||
|  | //
 | ||||||
| // XXX add form testing...
 | // XXX add form testing...
 | ||||||
| // XXX add undefined field handling/reporting...
 | // XXX add undefined field handling/reporting...
 | ||||||
| // XXX revise...
 | // XXX revise...
 | ||||||
| @ -561,8 +564,10 @@ function formDialog(root, message, config, btn, cls){ | |||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
| 	// add button...
 | 	// add button...
 | ||||||
| 	var button = $('<button class="accept">'+btn+'</button>') | 	if(btn !== false){ | ||||||
| 	form.append(button) | 		var button = $('<button class="accept">'+btn+'</button>') | ||||||
|  | 		form.append(button) | ||||||
|  | 	} | ||||||
| 
 | 
 | ||||||
| 	var overlay = showInOverlay(root, form) | 	var overlay = showInOverlay(root, form) | ||||||
| 		.addClass('dialog ' + cls) | 		.addClass('dialog ' + cls) | ||||||
| @ -601,7 +606,8 @@ function formDialog(root, message, config, btn, cls){ | |||||||
| var _alert = alert | var _alert = alert | ||||||
| function alert(){ | function alert(){ | ||||||
| 	var message = Array.apply(null, arguments).join(' ') | 	var message = Array.apply(null, arguments).join(' ') | ||||||
| 	return formDialog(null, String(message), {}, 'OK', 'alert') | 	//return formDialog(null, String(message), {}, 'OK', 'alert')
 | ||||||
|  | 	return formDialog(null, String(message), {}, false, 'alert') | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user