diff options
author | Fabio Comuni <fabrix.xm@gmail.com> | 2011-06-06 15:38:21 +0200 |
---|---|---|
committer | Fabio Comuni <fabrix.xm@gmail.com> | 2011-06-06 15:38:21 +0200 |
commit | 89fc56723de3be45daaebbadf81f52552c3e4682 (patch) | |
tree | 01b3bdfeaa4013b450af0bf6a546e85c8b710186 /view/theme/dispy/jot-header.tpl | |
parent | 4c629e274bbf368e79e47133869c923a2e6dd4a9 (diff) | |
download | volse-hubzilla-89fc56723de3be45daaebbadf81f52552c3e4682.tar.gz volse-hubzilla-89fc56723de3be45daaebbadf81f52552c3e4682.tar.bz2 volse-hubzilla-89fc56723de3be45daaebbadf81f52552c3e4682.zip |
Add 'attach' and 'language' icons and enable file upload in dispy template
Diffstat (limited to 'view/theme/dispy/jot-header.tpl')
-rw-r--r-- | view/theme/dispy/jot-header.tpl | 11 |
1 files changed, 11 insertions, 0 deletions
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() { |