varnsetup={// not anymore a clone of the original setup
varnsetup={// not anymore a clone of the original setup
namespace:'BintFlegs',// TODO: should be const.
namespace:'BintFlegs',// TODO: should be const.
flagsLoaded:false,
flagsLoaded:false,
form:'<span id="bantflags_container"></span><button type="button" id="append_flag_button" title="Click to add selected flag to your flags. Click on flags to remove them. Saving happens automatically, you only need to refresh the pages that have an outdated flaglist on the page."><<</button><button id="flagLoad" type="button">Click to load flags.</button><select id="flagSelect"></select>',
form:'<span id="bantflags_container"></span><button type="button" id="append_flag_button" title="Click to add selected flag to your flags. Click on flags to remove them. Saving happens automatically, you only need to refresh the pages that have an outdated flaglist on the page."><<</button><button id="flagLoad" type="button">Click to load flags.</button><div id="flagSelect" ><ul class="hide"></ul><input type="button" value="(You)" onclick=""></div>',
fillHtml:function(){// TODO: this function should have a better name. Only called by nsetup.init, can be inlined?
fillHtml:function(){// TODO: this function should have a better name. Only called by nsetup.init, can be inlined?
varnsetup={// not anymore a clone of the original setup
varnsetup={// not anymore a clone of the original setup
namespace:'BintFlegs',// TODO: should be const.
namespace:'BintFlegs',// TODO: should be const.
flagsLoaded:false,
flagsLoaded:false,
form:'<span id="bantflags_container"></span><button type="button" id="append_flag_button" title="Click to add selected flag to your flags. Click on flags to remove them. Saving happens automatically, you only need to refresh the pages that have an outdated flaglist on the page."><<</button><button id="flagLoad" type="button">Click to load flags.</button><select id="flagSelect"></select>',
form:'<span id="bantflags_container"></span><button type="button" id="append_flag_button" title="Click to add selected flag to your flags. Click on flags to remove them. Saving happens automatically, you only need to refresh the pages that have an outdated flaglist on the page."><<</button><button id="flagLoad" type="button">Click to load flags.</button><div id="flagSelect" ><ul class="hide"></ul><input type="button" value="(You)" onclick=""></div>',
fillHtml:function(){// TODO: this function should have a better name. Only called by nsetup.init, can be inlined?
fillHtml:function(){// TODO: this function should have a better name. Only called by nsetup.init, can be inlined?
MakeRequest(
MakeRequest(
"GET",
"GET",
@ -130,18 +130,27 @@ var nsetup = { // not anymore a clone of the original setup