Commit f237dffc authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Fix pieform element autofocus in IE


Signed-off-by: default avatarRichard Mansfield <richardm@catalyst.net.nz>
parent 00bc6cea
......@@ -49,7 +49,7 @@ function PieformManager() {//{{{
}
forEach(check, function(form) {
var element = getFirstElementByTagAndClassName(null, 'autofocus', form);
if (element && typeof(element.focus) == 'function') {
if (element && (typeof(element.focus) == 'function' || (element.focus && element.focus.call))) {
element.focus();
throw MochiKit.Iter.StopIteration;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment