summaryrefslogtreecommitdiff
path: root/static/js
diff options
context:
space:
mode:
authorsostler <sbostler@gmail.com>2010-01-29 01:51:48 -0500
committersostler <sbostler@gmail.com>2010-01-29 01:51:48 -0500
commit65f06c8d8593881f10d767dd0610ca6f63569f56 (patch)
tree62b1dfe4650a0ecce5fe1131a447c44756d37fd9 /static/js
parent99cc0ef49a1d087401dbd8e1cfabc7c8d5cc2104 (diff)
Added upload to main chat
Diffstat (limited to 'static/js')
-rwxr-xr-xstatic/js/pichat.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/static/js/pichat.js b/static/js/pichat.js
index 1c378e2..79f21b0 100755
--- a/static/js/pichat.js
+++ b/static/js/pichat.js
@@ -267,3 +267,12 @@ function initLog() {
}
function favoriteImage() {};
+
+function setupUpload(elementId, roomKey) {
+ new AjaxUpload(elementId, {
+ action: '/upload',
+ autoSubmit: true,
+ name: 'image',
+ data: { room: roomKey }
+ });
+} \ No newline at end of file