mirror of
				https://codeberg.org/forgejo/forgejo.git
				synced 2025-10-31 14:31:02 +00:00 
			
		
		
		
	Fix #319 (user not-logged in error)
This commit is contained in:
		
					parent
					
						
							
								c4eeb803e1
							
						
					
				
			
			
				commit
				
					
						8ccde45c5f
					
				
			
		
					 1 changed files with 5 additions and 2 deletions
				
			
		|  | @ -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> "); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue