Aralot (aralot) wrote in changelog,
Aralot
aralot
changelog

[ljcom] r10006: LJINT-392: focus on message box in comme...

Committer: szhirkov
LJINT-392: focus on message box in comment form by default
U   trunk/htdocs/js/partners/placeholder.js
Modified: trunk/htdocs/js/partners/placeholder.js
===================================================================
--- trunk/htdocs/js/partners/placeholder.js	2011-02-09 09:18:05 UTC (rev 10005)
+++ trunk/htdocs/js/partners/placeholder.js	2011-02-10 05:11:58 UTC (rev 10006)
@@ -3,8 +3,9 @@
 		$('input:text, input:password, textarea').placeholder();
 		$('.i-close').bind('click', function (e) {
 			e.preventDefault();
-			$(this).closest('.b-auth-error').hide();
+			$(this).closest('.b-auth-error').fadeOut('fast');
 		});
+		$('#commenttext').trigger('focus');
 	});
 	
 	$.fn.placeholder = function () {
@@ -24,6 +25,6 @@
 					}
 				})
 				.trigger('blur');
-		})
-	}	
+		});
+	};	
 })(jQuery);

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