mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
N°2847 - Tranform old itop datatable to jquery DataTable - fix diplay
This commit is contained in:
@@ -4915,11 +4915,6 @@ class AttributeEmailAddress extends AttributeString
|
||||
|
||||
return '<a class="mailto" href="mailto:'.$sValue.'"><span class="text_decoration '.$sUrlDecorationClass.'"></span>'.parent::GetAsHTML($sValue).'</a>';
|
||||
}
|
||||
public function GetRenderForDataTable(string $sClassAlias) :string
|
||||
{
|
||||
$sRenderFunction = "return '<a class=\'mailto\' href= \'mailto:'+data+'\'><span class=\'fas fa-envelope\'></span> '+data+'</a>' ;";
|
||||
return $sRenderFunction;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -5007,11 +5002,6 @@ class AttributePhoneNumber extends AttributeString
|
||||
return '<a class="tel" href="'.$sUrl.'"><span class="text_decoration '.$sUrlDecorationClass.'"></span>'.parent::GetAsHTML($sValue).'</a>';
|
||||
}
|
||||
|
||||
public function GetRenderForDataTable(string $sClassAlias) :string
|
||||
{
|
||||
$sRenderFunction = "return '<a class=\'tel\' href= \'tel:'+data+'\'><span class=\'fas fa-phone\'></span> '+data+'</a>' ;";
|
||||
return $sRenderFunction;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -10340,6 +10330,7 @@ class AttributeEnumSet extends AttributeSet
|
||||
return $sRes;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @param ormSet $value
|
||||
* @param string $sSeparator
|
||||
|
||||
@@ -410,7 +410,7 @@ try
|
||||
$aObj[$sAlias."/".$sAttCode ] = $aObject[$sAlias]->GetKey();
|
||||
}
|
||||
else {
|
||||
$aObj[$sAlias."/".$sAttCode ] = $aObject[$sAlias]->Get($sAttCode);
|
||||
$aObj[$sAlias."/".$sAttCode ] = $aObject[$sAlias]->GetAsHTML($sAttCode);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -420,7 +420,6 @@ try
|
||||
}
|
||||
array_push($aResult["data"], $aObj);
|
||||
}
|
||||
|
||||
$oPage->add(json_encode($aResult));
|
||||
$oKPI->ComputeAndReport('Data fetch and format');
|
||||
break;
|
||||
|
||||
@@ -204,7 +204,7 @@ class DataTableFactory
|
||||
$aList = $aDisplayList;
|
||||
}
|
||||
|
||||
$sSelectMode = 'none';
|
||||
$sSelectMode = '';
|
||||
if ($bSelectMode) {
|
||||
$sSelectMode = $bSingleSelectMode ? 'single' : 'multiple';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user