mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
N°1647 Fix Excel web queries import. (JS script error popups)
This commit is contained in:
@@ -731,9 +731,17 @@ try
|
|||||||
$sMimeType = $oExporter->GetMimeType();
|
$sMimeType = $oExporter->GetMimeType();
|
||||||
if ($sMimeType == 'text/html')
|
if ($sMimeType == 'text/html')
|
||||||
{
|
{
|
||||||
$oP = new NiceWebPage('iTop export');
|
// Note: Using NiceWebPage only for HTML export as it includes JS scripts & files, which makes no sense in other export formats. More over, it breaks Excel spreadsheet import.
|
||||||
|
if($oExporter instanceof HTMLBulkExport)
|
||||||
|
{
|
||||||
|
$oP = new NiceWebPage('iTop export');
|
||||||
|
$oP->add_ready_script("$('table.listResults').tablesorter({widgets: ['MyZebra']});");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$oP = new WebPage('iTop export');
|
||||||
|
}
|
||||||
$oP->add_style("body { overflow: auto; }");
|
$oP->add_style("body { overflow: auto; }");
|
||||||
$oP->add_ready_script("$('table.listResults').tablesorter({widgets: ['MyZebra']});");
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user