mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-01 14:38:47 +02:00
N°2847 - Separate inline scripts and css from html in the rendering of pages
This commit is contained in:
@@ -113,5 +113,13 @@ class AjaxTab extends Tab
|
||||
return $this->bCache ? 'true' : 'false';
|
||||
}
|
||||
|
||||
public function GetParameters(): array
|
||||
{
|
||||
$aParams = parent::GetParameters();
|
||||
|
||||
$aParams['sURL'] = $this->GetURL();
|
||||
$aParams['sCache'] = $this->GetCache() ? 'true' : 'false';
|
||||
|
||||
return $aParams;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -54,4 +54,14 @@ class Tab extends UIContentBlock
|
||||
{
|
||||
return $this->sTitle;
|
||||
}
|
||||
|
||||
public function GetParameters(): array
|
||||
{
|
||||
return [
|
||||
'sBlockId' => $this->GetId(),
|
||||
'sTitle' => $this->GetTitle(),
|
||||
'sType' => $this->GetType(),
|
||||
'oBlock' => $this,
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user