From 89fc56723de3be45daaebbadf81f52552c3e4682 Mon Sep 17 00:00:00 2001 From: Fabio Comuni Date: Mon, 6 Jun 2011 15:38:21 +0200 Subject: Add 'attach' and 'language' icons and enable file upload in dispy template --- view/theme/dispy/jot-header.tpl | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'view/theme/dispy/jot-header.tpl') diff --git a/view/theme/dispy/jot-header.tpl b/view/theme/dispy/jot-header.tpl index 245957808..eab3af700 100644 --- a/view/theme/dispy/jot-header.tpl +++ b/view/theme/dispy/jot-header.tpl @@ -81,6 +81,17 @@ tinyMCE.init({ } } ); + var file_uploader = new window.AjaxUpload( + 'wall-file-upload', + { action: 'wall_attach/$nickname', + name: 'userfile', + onSubmit: function(file,ext) { $('#profile-rotator').show(); }, + onComplete: function(file,response) { + tinyMCE.execCommand('mceInsertRawHTML',false,response); + $('#profile-rotator').hide(); + } + } + ); $('#contact_allow, #contact_deny, #group_allow, #group_deny').change(function() { var selstr; $('#contact_allow option:selected, #contact_deny option:selected, #group_allow option:selected, #group_deny option:selected').each( function() { -- cgit v1.2.3