1
0
Fork 0
mirror of https://github.com/Radiquum/photos.git synced 2025-06-05 09:09:35 +05:00

feat/admin: finished home page ui

This commit is contained in:
Kentai Radiquum 2025-02-18 16:56:55 +05:00
parent a80947d892
commit 5e3116d46f
Signed by: Radiquum
GPG key ID: 858E8EE696525EED
4 changed files with 406 additions and 14 deletions
admin/templates

View file

@ -94,7 +94,7 @@
tagInp.addEventListener('input', (e) => {
if (e.target.value.includes(',')) {
const tag = e.target.value.split(',')[0].trim().replaceAll(" ", "_").toLowerCase();
if (tags.includes(tag)) {
if (tags.includes(tag) || !tag) {
tagInp.value = '';
return;
};