Commit dd96f120 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Don't allow empty group name in mainpage.

parent b0e12b07
...@@ -8,8 +8,8 @@ ...@@ -8,8 +8,8 @@
document.getElementById('groupform').onsubmit = function(e) { document.getElementById('groupform').onsubmit = function(e) {
e.preventDefault(); e.preventDefault();
let group = document.getElementById('group').value.trim(); let group = document.getElementById('group').value.trim();
if(group !== '')
location.href = '/group/' + group; location.href = '/group/' + group;
} }
async function listPublicGroups() { async function listPublicGroups() {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment