1
Fork 0
mirror of https://github.com/jech/galene.git synced 2024-11-22 08:35:57 +01:00

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

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;
}