diff options
| author | dumpfmprod <dumpfmprod@ubuntu.(none)> | 2010-02-24 08:11:03 -0500 |
|---|---|---|
| committer | dumpfmprod <dumpfmprod@ubuntu.(none)> | 2010-02-24 08:11:03 -0500 |
| commit | 7b9c7f610974c56f13e05387c1f5ff9d7ca16ad0 (patch) | |
| tree | 4086d35a5a4fa49808ec3a9f5fb8b0d9109ac93c /static/js/home.js | |
| parent | 0f8f1b234276514560e6df3bb6f6bac56fa9807d (diff) | |
| parent | 49ef1a688025d9183452fe5f1dccf7802d64dc62 (diff) | |
resolved merge
Diffstat (limited to 'static/js/home.js')
| -rwxr-xr-x | static/js/home.js | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/static/js/home.js b/static/js/home.js index 107486c..e9be833 100755 --- a/static/js/home.js +++ b/static/js/home.js @@ -5,7 +5,6 @@ function ifEnter(fn) { } function initLoginForm() { - var nick = "#nickInput", nickFiller = "username" var pass = "#passwordInput", passLabel = "#passwordInputLabel", passFiller = "password" var submit = "#signin-submit" @@ -145,17 +144,16 @@ function initBigHand(id){ } function login() { - //$('#passwordInput, #loginSubmit').blur(); var nick = $('#nickInput').val(); var password = $('#passwordInput').val(); var rememberme = $('#remembermeInput').attr('checked') ? 'yes' : ''; var hash = hex_sha1(nick + '$' + password + '$dumpfm'); var onSuccess = function(json) { + location.href = location.href; if (typeof pageTracker !== 'undefined') { - pageTracker._setCustomVar(1, "logged-in", nick, 1); - } - location.href = "/chat"; + pageTracker._setCustomVar(1, "logged-in", nick); + } }; var onError = function(resp, textStatus, errorThrown) { |
