Skip to content

Commit

Permalink
Set the focus highlight correctly if an element has focus while the p…
Browse files Browse the repository at this point in the history
…age is being loaded.

Signed-off-by: Daniel Greenfeld <pydanny@gmail.com>
  • Loading branch information
mvaerle authored and pydanny committed Apr 20, 2009
1 parent b5c5ef6 commit 49a0fa6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions uni_form/media/uni_form/uni-form.jquery.js
Expand Up @@ -28,4 +28,5 @@ jQuery.fn.uniform = function(settings) {
// Auto set on page load...
$(document).ready(function() {
jQuery('form.uniForm').uniform();
$(document.activeElement).focus() //safari doesn't support this and has no alternative
});

0 comments on commit 49a0fa6

Please sign in to comment.