0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-12-25 17:04:12 -05:00

Merge pull request #320 from acusti/patch-2

Fix #319 (user not-logged in error)
This commit is contained in:
无闻 2014-07-25 01:10:52 -04:00
commit 2032080d86

View file

@ -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> ");