mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-29 10:57:44 +09:00 
			
		
		
		
	| @@ -2971,11 +2971,11 @@ function showDeletePopup() { | |||||||
|  |  | ||||||
|   const dialog = $(`.delete.modal${filter}`); |   const dialog = $(`.delete.modal${filter}`); | ||||||
|   dialog.find('.name').text($this.data('name')); |   dialog.find('.name').text($this.data('name')); | ||||||
|   for (const key of Object.keys(dataArray)) { |   Object.keys(dataArray).forEach((key) => { | ||||||
|     if (key && key.startsWith('data')) { |     if (key && key.startsWith('data')) { | ||||||
|       dialog.find(`.${key}`).text(dataArray[key]); |       dialog.find(`.${key}`).text(dataArray[key]); | ||||||
|     } |     } | ||||||
|   } |   }); | ||||||
|  |  | ||||||
|   dialog.modal({ |   dialog.modal({ | ||||||
|     closable: false, |     closable: false, | ||||||
| @@ -2988,14 +2988,14 @@ function showDeletePopup() { | |||||||
|       const postData = { |       const postData = { | ||||||
|         _csrf: csrf, |         _csrf: csrf, | ||||||
|       }; |       }; | ||||||
|       for (const key of Object.keys(dataArray)) { |       Object.keys(dataArray).forEach((key) => { | ||||||
|         if (key && key.startsWith('data')) { |         if (key && key.startsWith('data')) { | ||||||
|           postData[key.substr(4)] = dataArray[key]; |           postData[key.substr(4)] = dataArray[key]; | ||||||
|         } |         } | ||||||
|         if (key === 'id') { |         if (key === 'id') { | ||||||
|           postData['id'] = dataArray['id']; |           postData['id'] = dataArray['id']; | ||||||
|         } |         } | ||||||
|       } |       }); | ||||||
|  |  | ||||||
|       $.post($this.data('url'), postData).done((data) => { |       $.post($this.data('url'), postData).done((data) => { | ||||||
|         window.location.href = data.redirect; |         window.location.href = data.redirect; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user