player token list return false on token name click (keeps page from scrolling to top)
This commit is contained in:
parent
9d2f442c30
commit
ba3b6a782f
1 changed files with 1 additions and 1 deletions
|
@ -79,7 +79,7 @@ function renderTokenSelect() {
|
|||
const tokenSelect = document.getElementById("token_select");
|
||||
let tokenSelectHTML = "<ul class='single_btn_list'>";
|
||||
for (const t of tokens) {
|
||||
tokenSelectHTML += `<li><a href="#" onclick="initSpritePreviewById('${t.t.id}')">${t.t.name}</a><button onclick="toggleActive('${t.t.id}')">${(t.t.active ? "Deactivate" : "Activate")}</button></li>\n`;
|
||||
tokenSelectHTML += `<li><a href="#" onclick="initSpritePreviewById('${t.t.id}')">${t.t.name}</a><button onclick="toggleActive('${t.t.id}');return false">${(t.t.active ? "Deactivate" : "Activate")}</button></li>\n`;
|
||||
}
|
||||
tokenSelectHTML += "</ul>";
|
||||
tokenSelect.innerHTML = tokenSelectHTML;
|
||||
|
|
Loading…
Reference in a new issue