mirror of
				https://gitlab.crans.org/bde/nk20
				synced 2025-11-04 01:12:08 +01:00 
			
		
		
		
	Create transfers when pressing Enter in the amount part
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
This commit is contained in:
		@@ -222,6 +222,13 @@ $(document).ready(function () {
 | 
			
		||||
  })
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
// Make transfer when pressing Enter on the amount section
 | 
			
		||||
$('#amount, #reason, #last_name, #first_name, #bank').keypress((event) => {
 | 
			
		||||
  if (event.originalEvent.charCode === 13) {
 | 
			
		||||
    $('#btn_transfer').click()
 | 
			
		||||
  }
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
$('#btn_transfer').click(function () {
 | 
			
		||||
  if (LOCK) { return }
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user