mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-21 09:38:48 +02:00
N°3617 collapsible components state saving : use user pref instead of localStorage
No migration from existing localStorage keys (introduced in 2.5.0 with N°1030) as the console UI has dramatically change in 3.0.0 : will be useful to show all the collapsible sections content once again ! Note that an iTop instance identifier was used in the localStorage key, it is no longer needed as we're getting the user pref directly from the current instance. Thanks @Molkobain for the help !
This commit is contained in:
@@ -29,11 +29,14 @@ use Combodo\iTop\Application\UI\Base\Component\Html\Html;
|
||||
use Combodo\iTop\Application\UI\Base\Component\Panel\PanelFactory;
|
||||
use Combodo\iTop\Application\UI\Base\Layout\PageContent\PageContentFactory;
|
||||
use iTopWebPage;
|
||||
use LoginWebPage;
|
||||
use utils;
|
||||
|
||||
require_once '../../../approot.inc.php';
|
||||
require_once APPROOT.'application/startup.inc.php';
|
||||
|
||||
LoginWebPage::DoLogin(); // Dependency for collapsible element with state saved, to get user pref
|
||||
|
||||
$oPage = new iTopWebPage('Render all UI blocks');
|
||||
$oPageContentLayout = PageContentFactory::MakeStandardEmpty();
|
||||
$oPage->SetContentLayout($oPageContentLayout);
|
||||
|
||||
Reference in New Issue
Block a user