summaryrefslogtreecommitdiff
path: root/themes/default/js/user.js
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2008-11-14 18:16:13 +0000
committerTim Almdal <tnalmdal@shaw.ca>2008-11-14 18:16:13 +0000
commitbd1ec2df1fbd0a642b7f981742558b2ee4f8b5ff (patch)
tree437882c2bb3c64b7bd303e3487aff855d239f7be /themes/default/js/user.js
parentd7745f2ad871b8e5ac29428f74344dcb41f93b6d (diff)
The state of of the user registration functionality
Diffstat (limited to 'themes/default/js/user.js')
-rw-r--r--themes/default/js/user.js28
1 files changed, 13 insertions, 15 deletions
diff --git a/themes/default/js/user.js b/themes/default/js/user.js
index 427523ee..b389a67e 100644
--- a/themes/default/js/user.js
+++ b/themes/default/js/user.js
@@ -9,25 +9,23 @@ $(document).ready(function() {
});
});
-function show_login() {
- $("#gLoginLink").css({display: "none"});
- $("#gLoginText").css({display: "inline"});
- $("#gLoginClose").css({display: "inline"});
- var url = $("#gLoginForm").attr("formSrc");
+function show_form(formName) {
+ $(formName + "Link").css({display: "none"});
+ $(formName + "Text").css({display: "inline"});
+ $(formName + "Close").css({display: "inline"});
+ var url = $(formName + "Form").attr("formSrc");
$.get(url, null, function(data, textStatus) {
- $("#gLoginForm").html(data);
- $("#gLoginForm").css({display: "block"});
+ $(formName + "Form").html(data);
+ $(formName + "Form").css({display: "block"});
});
}
-function close_login() {
- $("#gLoginLink").css({display: "inline"});
- $("#gLoginForm").css({display: "none"});
- $("#gLoginForm").html("");
- $("#gLoginText").css({display: "none"});
- $("#gLoginClose").css({display: "none"});
- $("input#gUsername").val("");
- $("input#gPassword").val("");
+function hide_form(formName) {
+ $(formName + "Link").css({display: "inline"});
+ $(formName + "Form").css({display: "none"});
+ $(formName + "Form").html("");
+ $(formName + "Text").css({display: "none"});
+ $(formName + "Close").css({display: "none"});
}
function process_login() {