mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	* split `index.js` to separate files
* tune clipboard
* fix promise
* fix document
* remove intermediate empty file
* fix async event listener
* use `export function` instead of `export {}`, add more comments
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: 6543 <6543@obermui.de>
		
	
		
			
				
	
	
		
			8 lines
		
	
	
		
			351 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			8 lines
		
	
	
		
			351 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
export function initRepoBranchButton() {
 | 
						|
  $('.show-create-branch-modal.button').on('click', function () {
 | 
						|
    $('#create-branch-form')[0].action = $('#create-branch-form').data('base-action') + $(this).data('branch-from');
 | 
						|
    $('#modal-create-branch-from-span').text($(this).data('branch-from'));
 | 
						|
    $($(this).data('modal')).modal('show');
 | 
						|
  });
 | 
						|
}
 |