diff options
author | Chad Kieffer <chad@2tbsp.com> | 2008-12-06 23:28:26 +0000 |
---|---|---|
committer | Chad Kieffer <chad@2tbsp.com> | 2008-12-06 23:28:26 +0000 |
commit | adfe664d96a168d3474c97c633d75db7dd57a4be (patch) | |
tree | f0907d5f30c359c5b080bdb1a08d4d0d50a648e9 /modules/user/js/user.js | |
parent | fb6e22e1457ce4d1503c739d7354d51fe3af4e94 (diff) |
Removed tabs, todo, added description
Diffstat (limited to 'modules/user/js/user.js')
-rw-r--r-- | modules/user/js/user.js | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/modules/user/js/user.js b/modules/user/js/user.js index 8089f4ea..c3f292bf 100644 --- a/modules/user/js/user.js +++ b/modules/user/js/user.js @@ -1,23 +1,23 @@ /** - * @todo preventDefault() not working in IE 6 and 7 + * Display user login form + * * @todo Close link should be reusable */ - $("document").ready(function() { $("#gLoginLink").click(function() { var url = $("#gLoginLink a").attr("href"); $.get(url, function(data) { - $('#gLoginLink').hide(); - $("#gLoginMenu").append('<li><a href="#">X</a></li>'); - $("#gLoginMenu li:last").addClass("gClose").show(); - $("#gLoginMenu .gClose a").click(function() { - $("#gLoginForm").remove(); - $("#gLoginMenu .gClose").remove(); - $("#gLoginFormContainer").hide(); - $("#gLoginLink").show(); - $("input#gUsername").val(""); - $("input#gPassword").val(""); - }); + $('#gLoginLink').hide(); + $("#gLoginMenu").append('<li><a href="#">X</a></li>'); + $("#gLoginMenu li:last").addClass("gClose").show(); + $("#gLoginMenu .gClose a").click(function() { + $("#gLoginForm").remove(); + $("#gLoginMenu .gClose").remove(); + $("#gLoginFormContainer").hide(); + $("#gLoginLink").show(); + $("input#gUsername").val(""); + $("input#gPassword").val(""); + }); $("#gLoginFormContainer").html(data).hide().fadeIn(); ajaxify_login_form(); }); |