Committer: szhirkov
LJINT-392: focus on message boxU trunk/htdocs/js/partners/placeholder.js
Modified: trunk/htdocs/js/partners/placeholder.js =================================================================== --- trunk/htdocs/js/partners/placeholder.js 2011-02-11 09:35:43 UTC (rev 10026) +++ trunk/htdocs/js/partners/placeholder.js 2011-02-11 10:09:42 UTC (rev 10027) @@ -2,6 +2,7 @@ // "onload" instead of "onready" - hack for Webkit browsers $(window).bind('load', function () { $('input:text, input:password, input[type=url], textarea').placeholder(); + $('#commenttext').trigger('focus'); }); $(function () { @@ -11,7 +12,6 @@ e.preventDefault(); $(this).closest('.b-auth-error').fadeOut('fast'); }); - $('#commenttext').trigger('focus'); $('form').bind('submit', function () { submitButtons.attr('disabled', 'disabled'); });