Aralot (aralot) wrote in changelog,
Aralot
aralot
changelog

[ljcom] r10027: LJINT-392: focus on message box

Committer: szhirkov
LJINT-392: focus on message box
U   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');
 		});

Tags: aralot, js, ljcom
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments