diff options
author | zotlabs <mike@macgirvin.com> | 2017-08-08 22:55:47 -0700 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2017-08-08 22:55:47 -0700 |
commit | ca11d7b9a76c41c7cea0dbec1befacb0ff182de2 (patch) | |
tree | b341eae028b38707e2282ebd29632eaf74c8066c /view/js | |
parent | a7a73a5150e8da202b1ea84408434e284f4ceda2 (diff) | |
download | volse-hubzilla-ca11d7b9a76c41c7cea0dbec1befacb0ff182de2.tar.gz volse-hubzilla-ca11d7b9a76c41c7cea0dbec1befacb0ff182de2.tar.bz2 volse-hubzilla-ca11d7b9a76c41c7cea0dbec1befacb0ff182de2.zip |
support upload of files and attachments into comments. This has some repercussions when it comes to post permissions since the commenter will not know the distribution of the post. Basically the files will be uploaded with the commenter's default ACL. Most of the time this will do the right thing.
Diffstat (limited to 'view/js')
-rw-r--r-- | view/js/main.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/view/js/main.js b/view/js/main.js index aaadff99b..e4cfcf7b2 100644 --- a/view/js/main.js +++ b/view/js/main.js @@ -132,6 +132,19 @@ function inserteditortag(BBcode, id) { return true; } +function insertCommentAttach(comment,id) { + + activeCommentID = id; + activeCommentText = comment; + + $('body').css('cursor', 'wait'); + + $('#invisible-comment-upload').trigger('click'); + + return false; + +} + function insertCommentURL(comment, id) { reply = prompt(aStr.linkurl); if(reply && reply.length) { |