diff options
Diffstat (limited to 'static/js/pichat.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 |
