mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 00:20:25 +08:00 
			
		
		
		
	Introduce eslint-plugin-no-jquery/no-event-shorthand (#24198)
https://github.com/go-gitea/gitea/pull/24098#issuecomment-1514010690 --------- Co-authored-by: silverwind <me@silverwind.io>
This commit is contained in:
		@@ -57,7 +57,7 @@ export function initRepoCommentForm() {
 | 
			
		||||
    const $selectBranch = $('.ui.select-branch');
 | 
			
		||||
    const $branchMenu = $selectBranch.find('.reference-list-menu');
 | 
			
		||||
    const $isNewIssue = $branchMenu.hasClass('new-issue');
 | 
			
		||||
    $branchMenu.find('.item:not(.no-select)').click(function () {
 | 
			
		||||
    $branchMenu.find('.item:not(.no-select)').on('click', function () {
 | 
			
		||||
      const selectedValue = $(this).data('id');
 | 
			
		||||
      const editMode = $('#editing_mode').val();
 | 
			
		||||
      $($(this).data('id-selector')).val(selectedValue);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user