mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-11-04 01:34:27 +00:00 
			
		
		
		
	Fix #319 (user not-logged in error)
This commit is contained in:
		@@ -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> ");
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user