aboutsummaryrefslogtreecommitdiffstats
path: root/public
diff options
context:
space:
mode:
authorJustin Nuß <nuss.justin@gmail.com>2014-07-23 21:24:24 +0200
committerJustin Nuß <nuss.justin@gmail.com>2014-07-23 21:24:24 +0200
commit34304e6a0c9a3904b999e3ae1fcc9e6518d3f026 (patch)
treeb5b225396138e7fd68bff0f4e8f5123e4e148883 /public
parent4617bef8954deeef5bd2ba36d84aba3b05a4dd83 (diff)
downloadgitea-34304e6a0c9a3904b999e3ae1fcc9e6518d3f026.tar.gz
gitea-34304e6a0c9a3904b999e3ae1fcc9e6518d3f026.zip
WIP: Allow attachments for issues, not only comments
Diffstat (limited to 'public')
-rw-r--r--public/js/app.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/public/js/app.js b/public/js/app.js
index 77719efe09..16d1d5dab1 100644
--- a/public/js/app.js
+++ b/public/js/app.js
@@ -525,6 +525,7 @@ function initIssue() {
var $attachments = $("input[name=attachments]");
var $addButton = $("#attachments-button");
+ var commentId = $addButton.attr("data-comment-id"); // "0" == for issue, "" == for comment
var accepted = $addButton.attr("data-accept");
$addButton.on("click", function() {