diff options
| -rw-r--r-- | src/site.clj | 4 | ||||
| -rw-r--r-- | static/background.js | 2 | ||||
| -rwxr-xr-x | static/home.js | 1 | ||||
| -rw-r--r-- | static/index.html | 2 |
4 files changed, 7 insertions, 2 deletions
diff --git a/src/site.clj b/src/site.clj index 7fdd5ed..063bc59 100644 --- a/src/site.clj +++ b/src/site.clj @@ -298,6 +298,9 @@ (resp-success "OK")) (resp-error "MUST_LOGIN")))) +(defn upload [session params] + "TODO") + (defroutes pichat (GET "/" (landing session)) (GET "/static/*" (or (serve-file "static" (params :*)) @@ -312,6 +315,7 @@ (GET "/chat" (chat session)) (GET "/refresh" (refresh session)) (GET "/msg" (msg session params)) + (GET "/upload" (upload session)) (ANY "*" [404 "Page not found"])) (decorate pichat diff --git a/static/background.js b/static/background.js index 8eed157..364bdcb 100644 --- a/static/background.js +++ b/static/background.js @@ -19,7 +19,7 @@ function getBackground() { window.onload = function() { var nAV = navigator.appVersion.toLowerCase(); if (nAV.match(/msie 5/) || nAV.match(/msie 6/)) return false; - var items = utils.getElementsByClassName('dialog','div'); + var items = document.getElementsByClassName('dialog','div'); for (var i=0,j=items.length; i<j; i++) { widgets[widgets.length] = new DialogWidget(items[i],i); } diff --git a/static/home.js b/static/home.js index 8416703..7ced9da 100755 --- a/static/home.js +++ b/static/home.js @@ -10,6 +10,7 @@ function initHome() { } function login() { + $('#passwordInput, #loginSubmit').blur(); var nick = $('#nickInput').val(); var password = $('#passwordInput').val(); var hash = hex_sha1(nick + '$' + password + '$dumpfm'); diff --git a/static/index.html b/static/index.html index 0ccb121..680e8b5 100644 --- a/static/index.html +++ b/static/index.html @@ -209,7 +209,7 @@ <div align="right" class="txt"> <div align="center"><span class="txt"><a href="/register" class="txt">Register</a></span></div> </div> - <div align="center"></div> + <div align="center"> </div> </div> </div> </div></div> |
