mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 10:56:10 +01:00 
			
		
		
		
	Fix inserting excerpt on compare diff (#11833)
* Fix inserting excerpt on compare diff * use currentTarget * remove comment Co-authored-by: techknowlogick <techknowlogick@gitea.io>
This commit is contained in:
		
				
					committed by
					
						 GitHub
						GitHub
					
				
			
			
				
	
			
			
			
						parent
						
							2b2b3e4c37
						
					
				
				
					commit
					42752f3902
				
			| @@ -2034,7 +2034,7 @@ function initCodeView() { | |||||||
|     box.dataset.folded = String(folded); |     box.dataset.folded = String(folded); | ||||||
|   }); |   }); | ||||||
|   function insertBlobExcerpt(e) { |   function insertBlobExcerpt(e) { | ||||||
|     const $blob = $(e.target); |     const $blob = $(e.currentTarget); | ||||||
|     const $row = $blob.parent().parent(); |     const $row = $blob.parent().parent(); | ||||||
|     $.get(`${$blob.data('url')}?${$blob.data('query')}&anchor=${$blob.data('anchor')}`, (blob) => { |     $.get(`${$blob.data('url')}?${$blob.data('query')}&anchor=${$blob.data('anchor')}`, (blob) => { | ||||||
|       $row.replaceWith(blob); |       $row.replaceWith(blob); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user