1
Fork 0

Don't allow empty group name in mainpage.

This commit is contained in:
Juliusz Chroboczek 2020-04-25 13:05:05 +02:00
parent b0e12b0737
commit dd96f120a9
1 changed files with 2 additions and 2 deletions

View File

@ -8,7 +8,7 @@
document.getElementById('groupform').onsubmit = function(e) {
e.preventDefault();
let group = document.getElementById('group').value.trim();
if(group !== '')
location.href = '/group/' + group;
}