6b26b62fafdca469034bc9ebc18e7f620ba57090 kent Fri Mar 6 09:54:47 2015 -0800 Some tinkering, but generally looks like won't be using this module for long. Most of the logic has moved. diff --git src/hg/js/cdwSuggest.js src/hg/js/cdwSuggest.js index ce1083c..449a095 100644 --- src/hg/js/cdwSuggest.js +++ src/hg/js/cdwSuggest.js @@ -63,23 +63,24 @@ overflow: 'hidden', zIndex: 12 }); } }, select: function(event, ui) { lastSelected = ui.item.value; } }); // I want to set focus to the suggest element, but unforunately that prevents PgUp/PgDn from // working, which is a major annoyance. // $(textInput).focus(); $(textInput).change(function(event) { if (!lastSelected || lastSelected !== $(textInput).val()) { + $.submit(); // This handles case where user typed or edited something rather than choosing from a suggest list; // var val = $(textInput).val(); // alert("cdwSuggest.js changed to " + val); // Needed??? $(hiddenWidget).val(val); } }); } };