mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-11-03 21:16:26 +01:00 
			
		
		
		
	There is a side effect because some modal doesn't have a proper "ok" button. This reverts commit 050c38ca19cce06040741321e7871121981c76f4.
This commit is contained in:
		
							parent
							
								
									2cd9d6b3f9
								
							
						
					
					
						commit
						d1f1f1142e
					
				@ -345,8 +345,6 @@ export function initGlobalButtons() {
 | 
			
		||||
    if (colorPickers.length > 0) {
 | 
			
		||||
      initCompColorPicker();
 | 
			
		||||
    }
 | 
			
		||||
    // all non-"ok" buttons which do not have "type" should not submit the form, should not be triggered by "Enter"
 | 
			
		||||
    $($(this).attr('data-modal')).find('form button:not(.ok):not([type])').attr('type', 'button');
 | 
			
		||||
  });
 | 
			
		||||
 | 
			
		||||
  $('.delete-post.button').on('click', function (e) {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user