Fix articles

This commit is contained in:
2024-02-24 09:01:13 +01:00
parent cb0c400f81
commit d508231265
6 changed files with 31 additions and 9 deletions

View File

@@ -218,12 +218,21 @@ async function submitarticle(){
async function articleInit(){
let articleContainerElement = document.getElementById("articlecreatecontainer");
let articleCreateOpenElement = document.getElementById("articlecreateopen");
articleContainerElement.addEventListener("keyup", function (ev) {
if(ev.key === "Escape"){
togglearticlecreate();
}
})
PageIntervals.push(setInterval(renderarticles, 300000));
document.getElementById("articleprivilegeinput").setAttribute("max", UserInfo.Privileges);
if(UserInfo.Privileges < 2){
articleContainerElement.style.display = "none";
articleCreateOpenElement.style.display = "none";
}
else{
articleCreateOpenElement.style.display = "inline-block";
}
}
async function onPageLoad() {

View File

@@ -402,6 +402,11 @@ body:has(.ye-span:hover) {
backdrop-filter: blur(2px);
}
div.articleinfo{
display: flex;
flex-direction: row;
}
.hidden {
display: none !important;
}