1
Fork 0
mirror of https://github.com/jech/galene.git synced 2024-11-12 19:55:59 +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,8 +8,8 @@
document.getElementById('groupform').onsubmit = function(e) {
e.preventDefault();
let group = document.getElementById('group').value.trim();
location.href = '/group/' + group;
if(group !== '')
location.href = '/group/' + group;
}
async function listPublicGroups() {