diff options
author | Mike Macgirvin <mike@macgirvin.com> | 2010-07-22 20:22:03 -0700 |
---|---|---|
committer | Mike Macgirvin <mike@macgirvin.com> | 2010-07-22 20:22:03 -0700 |
commit | 88bfe21bead769c3ba81e181b79f9d6426ace351 (patch) | |
tree | 172c2d52cd001ddf6c2478e43d5eaa8bcacc93f8 /view/jot-header.tpl | |
parent | 11f2eaa16dc3e41b758235e7bc1a281e19aca96e (diff) | |
download | volse-hubzilla-88bfe21bead769c3ba81e181b79f9d6426ace351.tar.gz volse-hubzilla-88bfe21bead769c3ba81e181b79f9d6426ace351.tar.bz2 volse-hubzilla-88bfe21bead769c3ba81e181b79f9d6426ace351.zip |
first cut at ajax photo upload
Diffstat (limited to 'view/jot-header.tpl')
-rw-r--r-- | view/jot-header.tpl | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/view/jot-header.tpl b/view/jot-header.tpl index 7c17196ce..97e30cdae 100644 --- a/view/jot-header.tpl +++ b/view/jot-header.tpl @@ -2,7 +2,6 @@ src="$baseurl/tinymce/jscripts/tiny_mce/tiny_mce_src.js"></script> <script language="javascript" type="text/javascript"> - tinyMCE.init({ theme : "advanced", mode : "specific_textareas", @@ -19,10 +18,24 @@ tinyMCE.init({ add_unload_trigger : false, remove_linebreaks : false, content_css: "$baseurl/view/custom_tinymce.css" - - }); +</script> +<script type="text/javascript" src="include/ajaxupload.js" ></script> +<script> + $(document).ready(function() { + var uploader = new window.AjaxUpload( + 'wall-image-upload', + { action: 'wall_upload', + name: 'userfile', + onComplete: function(file,response) { + tinyMCE.execCommand('mceInsertRawHTML',false,response); + } + } + ); + + }); + </script> |