Last modified: 2014-02-12 23:45:46 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T22053, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 20053 - Show/hide memory in Wikipedia Mobile
Show/hide memory in Wikipedia Mobile
Status: RESOLVED FIXED
Product: MobileFrontend
Classification: Unclassified
Feature requests (Other open bugs)
unspecified
All All
: Low enhancement
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-08-03 17:20 UTC by Michael
Modified: 2014-02-12 23:45 UTC (History)
9 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
A suggested implementation for maintaining state of open/closed sections that respect browser navigation (2.60 KB, patch)
2012-02-14 12:41 UTC, Jon
Details

Description Michael 2009-08-03 17:20:01 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?
Comment 1 Phil Chang 2011-10-06 00:08:59 UTC
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.
Comment 2 Jon 2012-02-13 09:39:36 UTC
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.
Comment 3 Jon 2012-02-14 12:41:41 UTC
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.
Comment 4 Jon 2012-03-27 11:54:13 UTC
Addressed in https://gerrit.wikimedia.org/r/3804

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links