stevedore icon indicating copy to clipboard operation
stevedore copied to clipboard

if autogenerated <options>/checkboxes only work on every other search/render

Open jeremybmerrill opened this issue 9 years ago • 1 comments

then put it in a setTimeout(function(){}, 0) so that the template is rendered first, then the autogen stuff checks for whether the /checkboxes are present in the page. (Otherwise, as is the case right now, the "old" options are still in the page, as the template is evaluated before replacing it, so the check doesn't work.)

jeremybmerrill avatar Jul 06 '16 21:07 jeremybmerrill

ooh, maybe I should put the setTimeout in the generateOptions function, to reduce the boilerplate in user-written templates

jeremybmerrill avatar Jul 06 '16 21:07 jeremybmerrill