diff options
| author | sostler <sbostler@gmail.com> | 2010-01-29 01:51:48 -0500 |
|---|---|---|
| committer | sostler <sbostler@gmail.com> | 2010-01-29 01:51:48 -0500 |
| commit | 65f06c8d8593881f10d767dd0610ca6f63569f56 (patch) | |
| tree | 62b1dfe4650a0ecce5fe1131a447c44756d37fd9 /static/js | |
| parent | 99cc0ef49a1d087401dbd8e1cfabc7c8d5cc2104 (diff) | |
Added upload to main chat
Diffstat (limited to 'static/js')
| -rwxr-xr-x | static/js/pichat.js | 9 |
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 |
