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:
parent
b0e12b0737
commit
dd96f120a9
1 changed files with 2 additions and 2 deletions
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue