wolfpet / kitchen

Open Source Threaded Discussion project
6 stars 3 forks source link

Fix collapsed view in new UI #158

Closed iamranger closed 5 years ago

iamranger commented 5 years ago

Currently, a click on "Collapsed" icon calls toggleAll() function in junk.js which collapses answers on ALL levels. This is wrong, as toggle() function toggles visibility for top level only, so in this mode only top level answers are visible. toggleAll it should be hiding top level answers only, and restoring visibility only those items that were NOT collapsed by the user manually i.e. not found in stored state.

iamranger commented 5 years ago

Done