aboutsummaryrefslogtreecommitdiffstats
path: root/view/jot-header.tpl
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-05-24 22:40:52 -0700
committerFriendika <info@friendika.com>2011-05-24 22:40:52 -0700
commit73b4faca5c7af506558eba6b7317d23551f1aefa (patch)
tree38b706c0cae1581531007e85f40085820fe87a7a /view/jot-header.tpl
parenteb152fdc24302ead9baf8e82d551084128162715 (diff)
downloadvolse-hubzilla-73b4faca5c7af506558eba6b7317d23551f1aefa.tar.gz
volse-hubzilla-73b4faca5c7af506558eba6b7317d23551f1aefa.tar.bz2
volse-hubzilla-73b4faca5c7af506558eba6b7317d23551f1aefa.zip
basic file upload/attach
Diffstat (limited to 'view/jot-header.tpl')
-rw-r--r--view/jot-header.tpl12
1 files changed, 12 insertions, 0 deletions
diff --git a/view/jot-header.tpl b/view/jot-header.tpl
index 3057618b2..77e5bc4bc 100644
--- a/view/jot-header.tpl
+++ b/view/jot-header.tpl
@@ -79,6 +79,18 @@ 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() {