element enable/disable
This commit is contained in:
		
							parent
							
								
									45f17d06ce
								
							
						
					
					
						commit
						295e561562
					
				| @ -1,4 +1,18 @@ | ||||
| jfa.utilities.element = (function () { | ||||
|   function disable(element) { | ||||
|     if (!element) { | ||||
|       return; | ||||
|     } | ||||
|     element.disabled = true; | ||||
|   } | ||||
| 
 | ||||
|   function enable(element) { | ||||
|     if (!element) { | ||||
|       return; | ||||
|     } | ||||
|     element.disabled = false; | ||||
|   } | ||||
| 
 | ||||
|   function hide(element) { | ||||
|     if (!element) { | ||||
|       return; | ||||
| @ -15,6 +29,8 @@ | ||||
|   } | ||||
| 
 | ||||
|   return { | ||||
|     disable: disable, | ||||
|     enable: enable, | ||||
|     hide: hide, | ||||
|     show: show | ||||
|   }; | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user