Bug 103843 - autocomplete=off prevents FF and Chrome from preserving fields on clicking Back button

git-svn-id: svn://svn.office.custis.ru/3rdparty/bugzilla.org/trunk@1606 6955db30-a419-402b-8a0d-67ecbb4d7f56
master
vfilippov 2012-09-06 11:35:38 +00:00
parent 25b5d5f59e
commit 589187babb
2 changed files with 2 additions and 1 deletions

View File

@ -352,6 +352,7 @@ var SimpleAutocomplete = function(input, dataLoader, multipleDelimiter, onChange
self.onInputFocus = function()
{
self.show();
self.input.autocomplete = 'off';
self.hasFocus = true;
return true;
};
@ -360,6 +361,7 @@ var SimpleAutocomplete = function(input, dataLoader, multipleDelimiter, onChange
self.onInputBlur = function()
{
self.hide();
self.input.autocomplete = 'on';
self.hasFocus = false;
return true;
};

View File

@ -68,7 +68,6 @@
name="[% name FILTER html %]"
id="[% id FILTER html %]"
value="[% value FILTER html %]"
autocomplete="off"
[% IF tabindex %] tabindex="[% tabindex FILTER html %]" [% END %]
[% IF onchange %] onchange="[% onchange FILTER html %]" [% END %]
[% IF disabled %] disabled="[% disabled FILTER html %]" [% END %]