summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortimb <timb@mb.home>2010-02-06 08:37:39 -0800
committertimb <timb@mb.home>2010-02-06 08:37:39 -0800
commit0c6d2615d63f0ff7f7d213a6d8fb8b21ef6b7f35 (patch)
tree8307f365f2d7d064c33281eed346d4be69b1c40f
parentd1617964be69b1f39bf614add4344cc59d544731 (diff)
disable big hand until it gets fixed
-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() {