Fix idfield

master
Vitaliy Filippov 2015-03-25 13:02:38 +00:00
parent f78f0e6877
commit 1331852c4e
2 changed files with 3 additions and 2 deletions

View File

@ -115,6 +115,7 @@ var SimpleAutocomplete = function(input, dataLoader, params)
this.skipHideCounter = 0;
this.selectedIndex = -1;
this.disabled = false;
this.curValue = null;
// *** Call initialise ***
this.init();
@ -465,7 +466,7 @@ SimpleAutocomplete.prototype.onChange = function(force)
this.more = 0;
if (v != this.curValue || force)
{
if (this.idField)
if (this.curValue !== null && this.idField)
this.idField.value = '';
this.curValue = v;
if (!this.delay || force)

2
hinter.min.js vendored

File diff suppressed because one or more lines are too long