16 lines
297 B
JavaScript
16 lines
297 B
JavaScript
function auth1() {
|
|
var inp = { user: $('#inp_user').val(), passw: $('#inp_passw').val() }
|
|
sendAuth(inp, goNext, errorAnimation)
|
|
}
|
|
|
|
$(document).ready(function(){
|
|
$('#submit').click(function(){
|
|
auth1();
|
|
})
|
|
$(document).on('keypress',function(e) {
|
|
if(e.which == 13) {
|
|
auth1();
|
|
}
|
|
});
|
|
})
|