Browse Source

Merge pull request #320 from acusti/patch-2

Fix #319 (user not-logged in error)
tags/v1.2.0-rc1
无闻 11 years ago
parent
commit
2032080d86
1 changed files with 5 additions and 2 deletions
  1. +5
    -2
      public/js/app.js

+ 5
- 2
public/js/app.js View File

@@ -579,8 +579,11 @@ function initIssue() {
var $attachedList = $("#attached-list"); var $attachedList = $("#attached-list");
var $addButton = $("#attachments-button"); var $addButton = $("#attachments-button");


var fileInput = $("#attachments-input")[0];

var fileInput = document.getElementById("attachments-input");
if (fileInput === null) {
return;
}
fileInput.addEventListener("change", function(event) { fileInput.addEventListener("change", function(event) {
$attachedList.empty(); $attachedList.empty();
$attachedList.append("<b>Attachments:</b> "); $attachedList.append("<b>Attachments:</b> ");


Loading…
Cancel
Save