From 26a512c3522b4f59a06f5e3146df5d466373c06e Mon Sep 17 00:00:00 2001 From: Chad Kieffer Date: Mon, 1 Dec 2008 01:55:50 +0000 Subject: Grouped inline form styles. No longer using gInline class in favor of specific form IDs that can be styled differently depending on which container they appear. Added gDescription class, dropped gUnderState for semantics. CSS cleanup. --- modules/user/js/user.js | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) (limited to 'modules/user/js/user.js') diff --git a/modules/user/js/user.js b/modules/user/js/user.js index c547e511..fe7adf77 100644 --- a/modules/user/js/user.js +++ b/modules/user/js/user.js @@ -4,19 +4,20 @@ */ $("document").ready(function() { - $("#gLoginLink").click(function(event){ + $("#gLoginLink").click(function(event) { var url = $("#gLoginLink a").attr("href"); $.get(url, function(data) { - $('#gLoginLink').hide(); - $("#gLoginMenu").append('
  • X
  • '); - $("#gLoginMenu li:last").addClass("gClose").show(); - $("#gLoginMenu .gClose a").click(function(){ - $("#gLoginForm").remove(); - $("#gLoginMenu .gClose").remove(); - $("#gLoginLink").show(); - $("input#gUsername").val(""); - $("input#gPassword").val(""); - }); + $('#gLoginLink').hide(); + $("#gLoginMenu").append('
  • X
  • '); + $("#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(); }); @@ -25,7 +26,7 @@ $("document").ready(function() { }); function ajaxify_login_form() { - $("form#gLoginForm").ajaxForm({ + $("#gLoginForm").ajaxForm({ target: "#gLoginFormContainer", success: function(responseText, statusText) { if (!responseText) { -- cgit v1.2.3