Added some autocomplete Javascript magic.

Not sure how this got missed the first time around.
This commit is contained in:
Lance Edgar 2013-09-12 06:51:00 -07:00
parent fab49e6b20
commit ba5dc6ab02

View file

@ -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. * Add "check all" functionality to tables with checkboxes.
*/ */