newsdev / stevedore

search document dumps: ingest and explore in one extensible framework
Apache License 2.0
124 stars 10 forks source link

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

Open jeremybmerrill opened 8 years ago

jeremybmerrill commented 8 years ago

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 commented 8 years ago

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