#86384 by AjK and Steve McKenzie. Catch backspace in autocomplete fields.

5.x
Neil Drumm 2006-12-29 07:20:26 +00:00
parent bc82525c95
commit 3074b97f43
1 changed files with 5 additions and 0 deletions

View File

@ -195,6 +195,11 @@ Drupal.jsAC.prototype.populatePopup = function () {
* Fills the suggestion popup with any matches received
*/
Drupal.jsAC.prototype.found = function (matches) {
// If no value in the textfield, do not show the popup.
if (!this.input.value.length) {
return false;
}
// Prepare matches
var ul = document.createElement('ul');
var ac = this;