summaryrefslogtreecommitdiff
path: root/modules/user/js
diff options
context:
space:
mode:
authorChad Kieffer <chad@2tbsp.com>2008-12-01 01:55:50 +0000
committerChad Kieffer <chad@2tbsp.com>2008-12-01 01:55:50 +0000
commit26a512c3522b4f59a06f5e3146df5d466373c06e (patch)
treec844a59a2f0fc20d43791fffa6854bd9c7ee0fb1 /modules/user/js
parent6b03b798f3be23c83d0587f180341929c49af886 (diff)
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.
Diffstat (limited to 'modules/user/js')
-rw-r--r--modules/user/js/user.js25
1 files changed, 13 insertions, 12 deletions
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('<li><a href="#">X</a></li>');
- $("#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('<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();
});
@@ -25,7 +26,7 @@ $("document").ready(function() {
});
function ajaxify_login_form() {
- $("form#gLoginForm").ajaxForm({
+ $("#gLoginForm").ajaxForm({
target: "#gLoginFormContainer",
success: function(responseText, statusText) {
if (!responseText) {