From 65f06c8d8593881f10d767dd0610ca6f63569f56 Mon Sep 17 00:00:00 2001 From: sostler Date: Fri, 29 Jan 2010 01:51:48 -0500 Subject: Added upload to main chat --- static/js/pichat.js | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'static/js') 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 -- cgit v1.2.3-70-g09d2