@@ -32,7 +32,7 @@
return;
}
- if (form.find('input').val() === "") {
+ if ($('#search_query_query').val().match(/^\s*$/) !== null) {
list.addClass('hidden');
@@ -80,6 +80,11 @@
+ document.activeElement.blur();
+ return;
+ }
+
event.preventDefault();
currentSelected = list.find('ul.packages li.selected');