diff options
author | Justin Nuß <nuss.justin@gmail.com> | 2014-07-23 21:15:47 +0200 |
---|---|---|
committer | Justin Nuß <nuss.justin@gmail.com> | 2014-07-23 21:15:47 +0200 |
commit | 4617bef8954deeef5bd2ba36d84aba3b05a4dd83 (patch) | |
tree | a3583597828726617cfcf0b4d945e7bf6fb3471c /public/js | |
parent | 6e9f1c52b18f112eecd5c72e295cfea1809f07fa (diff) | |
download | gitea-4617bef8954deeef5bd2ba36d84aba3b05a4dd83.tar.gz gitea-4617bef8954deeef5bd2ba36d84aba3b05a4dd83.zip |
WIP: Allow attachments for comments
Diffstat (limited to 'public/js')
-rw-r--r-- | public/js/app.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/public/js/app.js b/public/js/app.js index 7d4e7839b4..77719efe09 100644 --- a/public/js/app.js +++ b/public/js/app.js @@ -520,6 +520,19 @@ function initIssue() { }); }()); + (function() { + var $attached = $("#attached"); + var $attachments = $("input[name=attachments]"); + var $addButton = $("#attachments-button"); + + 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 () { |