summaryrefslogtreecommitdiff
path: root/themes/default/js
diff options
context:
space:
mode:
authorChad Kieffer <chad@2tbsp.com>2008-11-22 20:36:46 +0000
committerChad Kieffer <chad@2tbsp.com>2008-11-22 20:36:46 +0000
commitac9df35d8aed2ed5dcf9da2b319bf8da1f246ab3 (patch)
tree44a890e56c317ac42f8a57a8d94b2f8fa82eb3d6 /themes/default/js
parent47442f9dd2bee70df745b2ec6026a121f9f29eeb (diff)
Cleanup of header to normalize margins and white space. Improved display of user login form. Added gHide, gShowBlock, gShowInline, gClose classes to handle show and hide functions. Half-baked idea which will need refinement.
Diffstat (limited to 'themes/default/js')
-rw-r--r--themes/default/js/user.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/themes/default/js/user.js b/themes/default/js/user.js
index 33aeaa60..06d43d15 100644
--- a/themes/default/js/user.js
+++ b/themes/default/js/user.js
@@ -1,6 +1,6 @@
function show_login(url) {
$("#gLoginLink").hide();
- $("#gLoginClose").show();
+ $(".gClose").show();
$.get(url, function(data) {
$("#gLoginFormContainer").html(data);
ajaxify_login_form();
@@ -8,7 +8,6 @@ function show_login(url) {
}
function ajaxify_login_form() {
- $("#gLoginMenu form ul").addClass("gInline");
$("form#gLoginForm").ajaxForm({
target: "#gLoginFormContainer",
success: function(responseText, statusText) {
@@ -23,7 +22,7 @@ function ajaxify_login_form() {
function close_login() {
$("#gLoginForm").remove();
- $("#gLoginClose").hide();
+ $(".gClose").hide();
$("#gLoginLink").show();
$("input#gUsername").val("");
$("input#gPassword").val("");