mirror of
https://github.com/jech/galene.git
synced 2024-11-22 16:45:58 +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,7 +8,7 @@
|
||||||
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue