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');