|
|
@ -188,10 +188,13 @@ |
|
|
|
if (toFocus.length == 0) { |
|
|
|
if (toFocus.length == 0) { |
|
|
|
toFocus = dropdown.find("ul a:visible:first"); |
|
|
|
toFocus = dropdown.find("ul a:visible:first"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
// actually a simple focus should be enough.
|
|
|
|
|
|
|
|
// The rest is only there to work around a rendering bug in webkit (as of Oct 2011),
|
|
|
|
|
|
|
|
// occuring mostly inside the login/signup dropdown.
|
|
|
|
toFocus.blur(); |
|
|
|
toFocus.blur(); |
|
|
|
setTimeout(function() { |
|
|
|
setTimeout(function() { |
|
|
|
toFocus.focus(); |
|
|
|
toFocus.focus(); |
|
|
|
}, 100); |
|
|
|
}, 10); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
registerEventHandlers: function () { |
|
|
|
registerEventHandlers: function () { |
|
|
|