From fc68c31e0537dc535a4d9f780e2b45ce296def8a Mon Sep 17 00:00:00 2001 From: "kehofset@live.no" Date: Sat, 17 Feb 2018 18:43:05 +0100 Subject: [PATCH] Changed the header toggles to instead use Roll20's automatic attr mirroring. --- .../Stars_Without_Number_Revised.html | 59 +++---------------- 1 file changed, 8 insertions(+), 51 deletions(-) diff --git a/Stars_Without_Number_Revised/Stars_Without_Number_Revised.html b/Stars_Without_Number_Revised/Stars_Without_Number_Revised.html index 05bf930254..de28490d89 100644 --- a/Stars_Without_Number_Revised/Stars_Without_Number_Revised.html +++ b/Stars_Without_Number_Revised/Stars_Without_Number_Revised.html @@ -727,7 +727,7 @@
@@ -1003,7 +1003,7 @@
@@ -1063,7 +1063,7 @@
@@ -1095,7 +1095,7 @@
@@ -1555,7 +1555,7 @@
@@ -1677,7 +1677,7 @@
@@ -1697,7 +1697,7 @@
@@ -1876,7 +1876,7 @@
@@ -2879,47 +2879,4 @@ fillNpc = function() { }); } -/** - * Checkbox madness - */ -on("change:stats_show_label", function () { - getAttrs(['stats_show_label'], function(v) { - setAttrs({stats_show:v.stats_show_label}); - }); -}); -on("change:combat_show_label", function () { - getAttrs(['combat_show_label'], function(v) { - setAttrs({combat_show:v.combat_show_label}); - }); -}); -on("change:saves_show_label", function () { - getAttrs(['saves_show_label'], function(v) { - setAttrs({saves_show:v.saves_show_label}); - }); -}); -on("change:skills_show_label", function () { - getAttrs(['skills_show_label'], function(v) { - setAttrs({skills_show:v.skills_show_label}); - }); -}); -on("change:psionics_show_label", function () { - getAttrs(['psionics_show_label'], function(v) { - setAttrs({psionics_show:v.psionics_show_label}); - }); -}); -on("change:foci_show_label", function () { - getAttrs(['foci_show_label'], function(v) { - setAttrs({foci_show:v.foci_show_label}); - }); -}); -on("change:gear_show_label", function () { - getAttrs(['gear_show_label'], function(v) { - setAttrs({gear_show:v.gear_show_label}); - }); -}); -on("change:misc_show_label", function () { - getAttrs(['misc_show_label'], function(v) { - setAttrs({misc_show:v.misc_show_label}); - }); -});