Don't allow empty group name in mainpage.
This commit is contained in:
+2
-2
@@ -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() {
|
||||||
|
|||||||
Reference in New Issue
Block a user