summaryrefslogtreecommitdiffstats
path: root/public/js
diff options
context:
space:
mode:
authorJustin Nuß <nuss.justin@gmail.com>2014-07-23 21:15:47 +0200
committerJustin Nuß <nuss.justin@gmail.com>2014-07-23 21:15:47 +0200
commit4617bef8954deeef5bd2ba36d84aba3b05a4dd83 (patch)
treea3583597828726617cfcf0b4d945e7bf6fb3471c /public/js
parent6e9f1c52b18f112eecd5c72e295cfea1809f07fa (diff)
downloadgitea-4617bef8954deeef5bd2ba36d84aba3b05a4dd83.tar.gz
gitea-4617bef8954deeef5bd2ba36d84aba3b05a4dd83.zip
WIP: Allow attachments for comments
Diffstat (limited to 'public/js')
-rw-r--r--public/js/app.js13
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 () {