summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Ostler <scottbot9000@gmail.com>2010-08-08 23:24:45 -0400
committerScott Ostler <scottbot9000@gmail.com>2010-08-08 23:24:45 -0400
commitd3925e5540fd5a9fd3812cbf1d07201c43527686 (patch)
tree11981ccde197c1b73d2c71c984d7a8fd23614c9d
parent8dc1aa93ab1e4163c491cfa6bb9bdc72269e75b3 (diff)
Add routes for stickers, dis-register, increase message posting timeout
-rw-r--r--docs/reserved_nicks.txt3
-rw-r--r--src/site.clj7
-rw-r--r--static/js/pichat.js2
3 files changed, 9 insertions, 3 deletions
diff --git a/docs/reserved_nicks.txt b/docs/reserved_nicks.txt
index d7aad5b..fa016a0 100644
--- a/docs/reserved_nicks.txt
+++ b/docs/reserved_nicks.txt
@@ -17,6 +17,7 @@ cmd
debug
developers
directory
+dis-register
dump
dumpfm
error
@@ -69,6 +70,8 @@ room
rooms
search
shop
+stickers
+swag
tag
tags
team
diff --git a/src/site.clj b/src/site.clj
index 20bbf62..ba21fd4 100644
--- a/src/site.clj
+++ b/src/site.clj
@@ -1160,7 +1160,8 @@ order by count desc limit ? offset ?")
;; TODO: these shouldn't be GETs
(GET "/login" (login session params cookies request))
(GET "/logout" (logout session))
- (GET "/register" (serve-static "static" "register.html"))
+ (GET "/register" (serve-static "static" "registerdis.html"))
+ (GET "/dis-register" (serve-static "static" "register.html"))
(GET "/browser" (browser session))
(GET "/refresh" (validated-refresh session params))
(GET "/tag/:tag" (tagged-dumps session params (request-url request)))
@@ -1195,8 +1196,10 @@ order by count desc limit ? offset ?")
;; Memes
(GET "/m/:m" (serve-meme session (params :m)))
-
(GET "/hall" (hall-of-fame session))
+
+ ;; Store
+ (GET "/stickers" (serve-static "static" "sticker.html"))
;; Footer pages
(GET "/about_us" (serve-template "about_us" session))
diff --git a/static/js/pichat.js b/static/js/pichat.js
index d81e5c6..aebe14e 100644
--- a/static/js/pichat.js
+++ b/static/js/pichat.js
@@ -365,7 +365,7 @@ function submitMessage() {
$.ajax({
type: 'POST',
- timeout: 5000,
+ timeout: 15000,
url: '/msg',
data: { 'room': Room, 'content': content },
cache: false,