Update SimpleAutocomplete, VMXTemplate, DatabaseMysql

master
Vitaliy Filippov 2013-03-05 15:31:23 +00:00
parent 2faa1f7732
commit ca551aaf8e
1 changed files with 3 additions and 2 deletions

View File

@ -88,6 +88,7 @@ var SimpleAutocomplete = function(input, dataLoader, params)
this.emptyText = 'No items found'; this.emptyText = 'No items found';
// Variables // Variables
this.origAutocomplete = input.autocomplete;
this.isMoreClick = false; this.isMoreClick = false;
this.more = 0; this.more = 0;
this.timer = null; this.timer = null;
@ -345,7 +346,7 @@ SimpleAutocomplete.prototype.hide = function()
if (!this.skipHideCounter) if (!this.skipHideCounter)
{ {
this.hintLayer.style.display = 'none'; this.hintLayer.style.display = 'none';
this.input.autocomplete = 'on'; this.input.autocomplete = this.origAutocomplete;
} }
else else
this.skipHideCounter = 0; this.skipHideCounter = 0;
@ -530,7 +531,7 @@ SimpleAutocomplete.prototype.onInputFocus = function()
SimpleAutocomplete.prototype.onInputBlur = function() SimpleAutocomplete.prototype.onInputBlur = function()
{ {
this.hide(); this.hide();
this.input.autocomplete = 'on'; this.input.autocomplete = this.origAutocomplete;
this.hasFocus = false; this.hasFocus = false;
return true; return true;
}; };