diff options
Diffstat (limited to 'public/js/app.js')
-rw-r--r-- | public/js/app.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/public/js/app.js b/public/js/app.js index 7ffcbd4a..1b4fed7d 100644 --- a/public/js/app.js +++ b/public/js/app.js @@ -579,8 +579,11 @@ function initIssue() { var $attachedList = $("#attached-list"); var $addButton = $("#attachments-button"); - var fileInput = $("#attachments-input")[0]; - + var fileInput = document.getElementById("attachments-input"); + + if (fileInput === null) { + return; + } fileInput.addEventListener("change", function(event) { $attachedList.empty(); $attachedList.append("<b>Attachments:</b> "); |