FileApi start

This commit is contained in:
2021-01-07 15:54:19 +01:00
parent fae8a71bac
commit 8747812a56
16 changed files with 1111 additions and 18 deletions

View File

@@ -27,6 +27,8 @@ $(document).ready(function () {
}
// Login
$("#username").keypress(function (e) { if(e.which == 13) $("#password").focus(); });
$("#password").keypress(function (e) { if(e.which == 13) $("#btnLogin").click(); });
$("#btnLogin").click(function() {
const username = $("#username").val();
const password = $("#password").val();
@@ -45,7 +47,7 @@ $(document).ready(function () {
btn.prop("disabled", false);
$("#password").val("");
createdDiv.hide();
showAlert(res.msg);
showAlert("danger", res.msg);
}
});
});
@@ -172,4 +174,4 @@ $(document).ready(function () {
});
}
});
});
});