mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 21:28:11 +09:00 
			
		
		
		
	There is a side effect because some modal doesn't have a proper "ok"
button.
This reverts commit a954c93a68.
			
			
This commit is contained in:
		| @@ -395,8 +395,6 @@ function initGlobalShowModal() { | ||||
|     if (colorPickers.length > 0) { | ||||
|       initCompColorPicker(); // FIXME: this might cause duplicate init | ||||
|     } | ||||
|     // all non-"ok" buttons which do not have "type" should not submit the form, should not be triggered by "Enter" | ||||
|     $modal.find('form button:not(.ok):not([type])').attr('type', 'button'); | ||||
|     $modal.modal('setting', { | ||||
|       onApprove: () => { | ||||
|         // "form-fetch-action" can handle network errors gracefully, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user