diff --git a/static/admin.js b/static/admin.js
index ae41075..1374726 100644
--- a/static/admin.js
+++ b/static/admin.js
@@ -28,6 +28,7 @@ async function loadAdmin(name, pass) {
const table = await tableData.json()
mgmtHTML = `← table list
\n` +
+ `` +
`
\n` +
`
\n` +
`
\n`
@@ -43,6 +44,7 @@ async function loadAdmin(name, pass) {
mgmtHTML += "";
}
$("table_management").innerHTML = mgmtHTML;
+ q = false;
let spriteListHTML = `
`;
@@ -69,6 +71,18 @@ async function loadAdmin(name, pass) {
}
}
+function toggleQ() {
+ const toggleBtn = $('q_toggle');
+ q = !q;
+ if (!q) {
+ emptyMsgQ();
+ toggleBtn.innerText = "Enqueue Updates"
+ } else {
+ toggleBtn.innerText = "Send Updates"
+ }
+
+}
+
function fillSpriteDropdown(sprites) {
const dropdown = $("sprite_dropdown");
let options = "";
@@ -90,7 +104,6 @@ function previewSprite(source) {
break;
default:
scaleSpritePreview(source);
- console.log("default case");
}
}
}
@@ -310,7 +323,7 @@ function renderTokenMasterList() {
function publishAuxMsg() {
const txtArea = $("aux_msg_input");
if (txtArea) {
- publish({auxMsg: txtArea.value, auth: adminToken.access_token});
+ publish({auxMsg: txtArea.value || " ", auth: adminToken.access_token});
}
}
diff --git a/static/index.html b/static/index.html
index 872cf87..405df7e 100644
--- a/static/index.html
+++ b/static/index.html
@@ -146,14 +146,14 @@