diff --git a/src/JS.hs b/src/JS.hs index d3576f3..1a94e93 100644 --- a/src/JS.hs +++ b/src/JS.hs @@ -335,6 +335,19 @@ expandItemNotes = switchSection("#item-notes-"+itemId, "expanded"); |] +{- Note [dynamic interface] +~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +'makeTraitEditor' creates a textbox that appears when you try to edit a pro/con; 'makeItemNotesEditor' creates a textbox that appears when you try to edit item's notes. (Both also create some buttons/etc.) + +This is rather inelegant, rather hacky, and in most places we try *not* to create any HTML dynamically, instead relying on sections (see Note [show-hide]). However, in this case we have to – Firefox has a bug that makes loading pages with lots of