Aralot (aralot) wrote in changelog,
Aralot
aralot
changelog

[ljcom] r10016: LJINT-388: placeholders fix for webkit (...

Committer: szhirkov
LJINT-388: placeholders fix for webkit (Kommersant comments)
U   trunk/htdocs/js/partners/placeholder.js
Modified: trunk/htdocs/js/partners/placeholder.js
===================================================================
--- trunk/htdocs/js/partners/placeholder.js	2011-02-10 09:43:39 UTC (rev 10015)
+++ trunk/htdocs/js/partners/placeholder.js	2011-02-10 11:02:16 UTC (rev 10016)
@@ -1,6 +1,15 @@
 (function ($) {
+	// "onload" instead of "onready" - hack for Webkit browsers
+	$(window).bind('load', function () {
+		$('input:text, input:password, input[type=url], textarea').placeholder();
+	});
+	
 	$(function () {
-		$('input:text, input:password, input[type=url], textarea').placeholder();
+		
+		setTimeout(function () {
+							
+		}, 1000);
+		
 		$('.i-close').bind('click', function (e) {
 			e.preventDefault();
 			$(this).closest('.b-auth-error').fadeOut('fast');

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