summaryrefslogtreecommitdiff
path: root/static/js/home.js
diff options
context:
space:
mode:
Diffstat (limited to 'static/js/home.js')
-rwxr-xr-xstatic/js/home.js29
1 files changed, 15 insertions, 14 deletions
diff --git a/static/js/home.js b/static/js/home.js
index fa754ee..af4ee4b 100755
--- a/static/js/home.js
+++ b/static/js/home.js
@@ -6,15 +6,15 @@ function ifEnter(fn) {
function initLoginForm() {
- var nick = "#nickInput", nickFiller = "username"
- var pass = "#passwordInput", passLabel = "#passwordInputLabel", passFiller = "password"
- var submit = "#signin-submit"
-
- // username input logic:
- // set filler text for the login form only if empty
- if ($(nick).val() == "") $(nick).val(nickFiller);
-
- // erase the form text when clicked only if it is filler text, otherwise select it
+ var nick = "#nickInput", nickFiller = "username"
+ var pass = "#passwordInput", passLabel = "#passwordInputLabel", passFiller = "password"
+ var submit = "#signin-submit"
+
+ // username input logic:
+ // set filler text for the login form only if empty
+ if ($(nick).val() == "") $(nick).val(nickFiller);
+
+ // erase the form text when clicked only if it is filler text, otherwise select it
$(nick).focus(function(){
if($(nick).val() == nickFiller) $(nick).val("")
else $(nick).select()
@@ -38,8 +38,8 @@ function initLoginForm() {
$(pass).addClass("invisible")
$(passLabel).removeClass("invisible")
}
-
- // only show password label if input is empty
+
+ // only show password label if input is empty
if ($(pass).val() == "") hidePassShowLabel()
$(passLabel).click(showPassHideLabel)
@@ -48,12 +48,13 @@ function initLoginForm() {
$(pass).blur(function(){
if($(pass).val() == "") hidePassShowLabel()
})
-
- $(nick).keypress(ifEnter(login));
+
+ $(nick).keypress(ifEnter(login));
$(pass).keypress(ifEnter(login));
$(submit).click(login);
- initBigHand(submit)
+ //disable this until i can figure out the bug on the front page...
+ //initBigHand(submit)
}
function initExpandableLoginForm() {