Fix form submit, preventing login. (#118)
This commit is contained in:
		
							parent
							
								
									80ce35b133
								
							
						
					
					
						commit
						d1507726a4
					
				|  | @ -91,6 +91,11 @@ | ||||||
| </script> | </script> | ||||||
| <script> | <script> | ||||||
|     $(document).ready(function () { |     $(document).ready(function () { | ||||||
|  |         $('form').on('submit', function(e) { | ||||||
|  |             e.preventDefault(); | ||||||
|  |             $("#btn_login").trigger('click'); | ||||||
|  |         }); | ||||||
|  | 
 | ||||||
|         $("#btn_login").click(function () { |         $("#btn_login").click(function () { | ||||||
|             const username = $("#username").val(); |             const username = $("#username").val(); | ||||||
|             const password = $("#password").val(); |             const password = $("#password").val(); | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue