diff --git a/application/datatable.class.inc.php b/application/datatable.class.inc.php
index 009937e88..4e5db0dc5 100644
--- a/application/datatable.class.inc.php
+++ b/application/datatable.class.inc.php
@@ -20,6 +20,8 @@
class DataTable
{
protected $iListId; // Unique ID inside the web page
+ /** @var string */
+ private $sDatatableContenerId;
protected $sTableId; // identifier for saving the settings (combined with the class aliases)
protected $oSet; // The set of objects to display
protected $aClassAliases; // The aliases (alias => class) inside the set
@@ -29,10 +31,10 @@ class DataTable
protected $bShowObsoleteData;
/**
- * @param $iListId mixed Unique ID for this div/table in the page
- * @param $oSet DBObjectSet The set of data to display
- * @param $aClassAliases array The list of classes/aliases to be displayed in this set $sAlias => $sClassName
- * @param $sTableId mixed A string (or null) identifying this table in order to persist its settings
+ * @param string $iListId Unique ID for this div/table in the page
+ * @param DBObjectSet $oSet The set of data to display
+ * @param array$aClassAliases The list of classes/aliases to be displayed in this set $sAlias => $sClassName
+ * @param string $sTableId A string (or null) identifying this table in order to persist its settings
*
* @throws \CoreException
* @throws \MissingQueryArgument
@@ -42,6 +44,7 @@ class DataTable
public function __construct($iListId, $oSet, $aClassAliases, $sTableId = null)
{
$this->iListId = utils::GetSafeId($iListId); // Make a "safe" ID for jQuery
+ $this->sDatatableContenerId = 'datatable_'.utils::GetSafeId($iListId);
$this->oSet = $oSet;
$this->aClassAliases = $aClassAliases;
$this->sTableId = $sTableId;
@@ -165,7 +168,7 @@ class DataTable
$sDataTable = $this->GetHTMLTable($oPage, $aColumns, $sSelectMode, $iPageSize, $bViewLink, $aExtraParams);
$sConfigDlg = $this->GetTableConfigDlg($oPage, $aColumns, $bViewLink, $iDefaultPageSize);
- $sHtml = "