From c812d2a9314eec3d73f9408cf1f3938edc675b0d Mon Sep 17 00:00:00 2001 From: Chad Kieffer Date: Mon, 24 Nov 2008 07:12:45 +0000 Subject: Changed comment sort order asc. Changed ajax comment add to append comment li to comment thread ul. Added fadeIn for user login. --- themes/default/js/user.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'themes/default/js/user.js') diff --git a/themes/default/js/user.js b/themes/default/js/user.js index 6c66e35c..a0ff43cd 100644 --- a/themes/default/js/user.js +++ b/themes/default/js/user.js @@ -2,7 +2,6 @@ * @todo preventDefault() not working in IE 6 and 7 * @todo Close link should be reusable */ -var closeLink = '
  • X
  • '; $("document").ready(function() { $("#gLoginLink").click(function(event){ @@ -10,7 +9,7 @@ $("document").ready(function() { var url = $("#gLoginLink a").attr("href"); $.get(url, function(data) { $('#gLoginLink').hide(); - $("#gLoginMenu").append(closeLink); + $("#gLoginMenu").append('
  • X
  • '); $("#gLoginMenu li:last").addClass("gClose").show(); $("#gLoginMenu .gClose a").click(function(){ $("#gLoginForm").remove(); @@ -19,7 +18,7 @@ $("document").ready(function() { $("input#gUsername").val(""); $("input#gPassword").val(""); }); - $("#gLoginFormContainer").html(data); + $("#gLoginFormContainer").html(data).hide().fadeIn(); ajaxify_login_form(); }); }); -- cgit v1.2.3