diff options
Diffstat (limited to 'public')
-rw-r--r-- | public/js/app.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/public/js/app.js b/public/js/app.js index 7d4e7839b4..16d1d5dab1 100644 --- a/public/js/app.js +++ b/public/js/app.js @@ -520,6 +520,20 @@ function initIssue() { }); }()); + (function() { + var $attached = $("#attached"); + 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() { + // TODO: (nuss-justin): open dialog, upload file, add id to list, add file to $attached list + return false; + }); + }()); + // issue edit mode (function () { $("#issue-edit-btn").on("click", function () { |