Last modified: 2014-02-12 23:45:46 UTC
People are saying that they hit "show", follow a link in that paragraph, then when they hit "back", the subcategory is hidden. Is there a way to use cookies or whatever to remember which subcategories were open?
Sounds potentially problematic across platforms, but a good general principle of usability. Should be incorporated in a basic way, even if it doesn't work across devices and browsers.
The hash could be used here to maintain which categories are open. e.g. if the hash was #Cat_1 Cat_2 this would mean category 1 and 2 (the div's with id cat_1 and cat_2) were open. The browsers history would then take care of things when you hit back. The current code does this but only supports one open category - taking the entire hash as the category element id.
Created attachment 10005 [details] A suggested implementation for maintaining state of open/closed sections that respect browser navigation Note that this will not work on legacy browsers where the Array prototype does not support the indexOf function.
Addressed in https://gerrit.wikimedia.org/r/3804