Fix form submit, preventing login.
This commit is contained in:
		
							parent
							
								
									80ce35b133
								
							
						
					
					
						commit
						5baf7951a1
					
				| 
						 | 
					@ -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