Insert hint layer into the beginning of document
This fixes setup of SimpleAutocomplete in inline scripts (not in onload/ondomready event handlers) in IE8 and below.master
parent
d8e5747563
commit
a905d1bf96
|
@ -2,8 +2,8 @@
|
||||||
|
|
||||||
Homepage: http://yourcmc.ru/wiki/SimpleAutocomplete
|
Homepage: http://yourcmc.ru/wiki/SimpleAutocomplete
|
||||||
License: MPL 2.0+ (http://www.mozilla.org/MPL/2.0/)
|
License: MPL 2.0+ (http://www.mozilla.org/MPL/2.0/)
|
||||||
Version: 2014-09-22
|
Version: 2015-01-16
|
||||||
(c) Vitaliy Filippov 2011-2014
|
(c) Vitaliy Filippov 2011-2015
|
||||||
|
|
||||||
Usage:
|
Usage:
|
||||||
Include hinter.css, hinter.js on your page. Then write:
|
Include hinter.css, hinter.js on your page. Then write:
|
||||||
|
@ -130,7 +130,7 @@ SimpleAutocomplete.prototype.init = function()
|
||||||
t.style.display = 'none';
|
t.style.display = 'none';
|
||||||
t.style.position = 'absolute';
|
t.style.position = 'absolute';
|
||||||
t.style.zIndex = 1000;
|
t.style.zIndex = 1000;
|
||||||
document.body.appendChild(t);
|
document.body.insertBefore(t, document.body.childNodes[0]);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue