User tests: Successful: Unsuccessful:
Pull Request for Issue #15892
This PR adds the use of localStorage
to save the state of the sidebar (open/closed). Upon page refresh it wil automatically open or close the sidebar based on the state it was in before.
1.
2.
3.
@dgt41 I've added the test to see if localStorage
can be used in the core.js
, so you can use this from now on. Just do if (Joomla.localStorageEnabled()) { ... }
Status | New | ⇒ | Pending |
Category | ⇒ | JavaScript Administration Templates (admin) |
Yup, but if the user has it disabled on their browser for some reason, then this is just a sanity check to prevent any console errors, which may then stop something else from working.
brings up a good point though - do we have a list of supported MOBILE browsers
@brianteeman no AFAIK
@brianteeman - You're not going to want to keep the sidebar open on mobile as it will take up most of the screen.
I have tested this item
With this PR certain views end up with an empty space at the side
which views?
Will fix tomorrow morning
Labels |
Added:
?
|
@brianteeman - Fixed the edit views. Would you mind retesting please?
Status | Pending | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2017-05-29 09:02:45 |
Closed_By | ⇒ | wilsonge |
@C-Lodder do we need this check?
Looking at https://developer.mozilla.org/en-US/docs/Web/API/Window/localStorage it should be available for all supported browsers in J4