mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-19 15:07:22 -06:00
WebUI: Minor optimizations to the login page
This commit is contained in:
committed by
Vladimir Golovnev (glassez)
parent
3007762864
commit
43300d97e2
@@ -31,13 +31,10 @@
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
document.getElementById('username').focus();
|
||||
document.getElementById('username').select();
|
||||
|
||||
document.getElementById('loginform').addEventListener('submit', function(e) {
|
||||
e.preventDefault();
|
||||
});
|
||||
});
|
||||
|
||||
function submitLoginForm() {
|
||||
function submitLoginForm(event) {
|
||||
event.preventDefault();
|
||||
const errorMsgElement = document.getElementById('error_msg');
|
||||
|
||||
const xhr = new XMLHttpRequest();
|
||||
|
||||
Reference in New Issue
Block a user