[ljcom] r10006: LJINT-392: focus on message box in comme...
Committer: szhirkov
LJINT-392: focus on message box in comment form by defaultU 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);
