mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Added function for rules, and moved thumbnail/data somewhat around for better readability
This commit is contained in:
@@ -21,6 +21,21 @@ function removeAllListeners() {
|
||||
socket.removeEventListener(id);
|
||||
}
|
||||
|
||||
function sendDescription() {
|
||||
emit("suggest_description", {channel: chan, description: document.getElementById("description_input").value});
|
||||
document.getElementById("description_input").value = "";
|
||||
}
|
||||
|
||||
function sendThumbnail() {
|
||||
emit("suggest_thumbnail", {channel: chan, thumbnail: document.getElementById("thumbnail_input").value});
|
||||
document.getElementById("thumbnail_input").value = "";
|
||||
}
|
||||
|
||||
function sendRules() {
|
||||
emit("suggest_rules", {channel: chan, rules: document.getElementById("rules_input").value});
|
||||
document.getElementById("rules_input").value = "";
|
||||
}
|
||||
|
||||
function resizeFunction() {
|
||||
if(chan && !Helper.mobilecheck()){
|
||||
if(document.querySelector("#wrapper") == null) return;
|
||||
@@ -1072,6 +1087,12 @@ function toast(msg, _class) {
|
||||
case "other_list_pass":
|
||||
msg = "The other list has a pass, can't import the songs..";
|
||||
break;
|
||||
case "suggested_rules":
|
||||
msg = "Your rules have been suggested";
|
||||
break;
|
||||
case "rules_denied":
|
||||
msg = "Your rules will be denied";
|
||||
break;
|
||||
case "nolist":
|
||||
msg = "There is no list with that name";
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user