N°2314 - Markup extensibility: Fix table sorter icons in html export pages

This commit is contained in:
Stephen Abello
2020-02-25 10:36:56 +01:00
parent ccfd3848fb
commit 368b49ef8f
2 changed files with 4 additions and 0 deletions

View File

@@ -730,6 +730,8 @@ try
{
$oP = new NiceWebPage('iTop export');
$oP->add_ready_script("$('table.listResults').tablesorter({widgets: ['MyZebra']});");
$oP->add_linked_stylesheet(utils::GetAbsoluteUrlAppRoot().'css/font-awesome/css/all.min.css');
$oP->add_linked_stylesheet(utils::GetAbsoluteUrlAppRoot().'css/font-awesome/css/v4-shims.min.css');
}
else
{

View File

@@ -191,6 +191,8 @@ if (!empty($sExpression))
case 'html':
$oP = new NiceWebPage("iTop - Export");
$oP->add_style('body { overflow: auto; }'); // Show scroll bars if needed
$oP->add_linked_stylesheet(utils::GetAbsoluteUrlAppRoot().'css/font-awesome/css/all.min.css');
$oP->add_linked_stylesheet(utils::GetAbsoluteUrlAppRoot().'css/font-awesome/css/v4-shims.min.css');
// Integration within MS-Excel web queries + HTTPS + IIS:
// MS-IIS set these header values with no-cache... while Excel fails to do the job if using HTTPS