Added some autocomplete Javascript magic.
Not sure how this got missed the first time around.
This commit is contained in:
		
							parent
							
								
									fab49e6b20
								
							
						
					
					
						commit
						ba5dc6ab02
					
				
					 1 changed files with 18 additions and 0 deletions
				
			
		|  | @ -248,6 +248,24 @@ $(function() { | |||
| 
 | ||||
|     }); | ||||
| 
 | ||||
|     /* | ||||
|      * Whenever the "change" button is clicked within the context of an | ||||
|      * autocomplete field, hide the static display and show the autocomplete | ||||
|      * textbox. | ||||
|      */ | ||||
|     $('div.autocomplete-container button.autocomplete-change').click(function() { | ||||
|         var container = $(this).parents('div.autocomplete-container'); | ||||
|         var textbox = container.find('input.autocomplete-textbox'); | ||||
| 
 | ||||
|         container.find('input[type="hidden"]').val(''); | ||||
|         container.find('div.autocomplete-display').hide(); | ||||
| 
 | ||||
|         textbox.val(''); | ||||
|         textbox.show(); | ||||
|         textbox.select(); | ||||
|         textbox.focus(); | ||||
|     }); | ||||
| 
 | ||||
|     /* | ||||
|      * Add "check all" functionality to tables with checkboxes. | ||||
|      */ | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Lance Edgar
						Lance Edgar