[Piwik-svn] r269 - trunk/modules
svnmaster at piwik.org
svnmaster at piwik.org
Sun Feb 3 18:18:33 CET 2008
Author: matt
Date: 2008-02-03 18:18:33 +0100 (Sun, 03 Feb 2008)
New Revision: 269
Modified:
trunk/modules/ViewDataTable.php
Log:
test updating ID datatable
Modified: trunk/modules/ViewDataTable.php
===================================================================
--- trunk/modules/ViewDataTable.php 2008-02-03 17:08:08 UTC (rev 268)
+++ trunk/modules/ViewDataTable.php 2008-02-03 17:18:33 UTC (rev 269)
@@ -205,18 +205,18 @@
protected function getUniqIdTable()
{
- // the $uniqIdTable variable is used as the DIV ID in the rendered HTML
- // we use the current Controller action name as it is supposed to be unique in the rendered page
- $uniqIdTable = $this->currentControllerAction;
-
- // if we request a subDataTable the $this->currentControllerAction DIV ID is already there in the page
- // we make the DIV ID really unique by appending the ID of the subtable requested
- if( $this->idSubtable != false)
- {
- $uniqIdTable = 'subDataTable_' . $this->idSubtable;
+ // if we request a subDataTable the $this->currentControllerAction DIV ID is already there in the page
+ // we make the DIV ID really unique by appending the ID of the subtable requested
+ if( $this->idSubtable != false)
+ {
+ $uniqIdTable = 'subDataTable_' . $this->idSubtable;
}
-
- $uniqIdTable = $this->currentControllerName . $uniqIdTable;
+ else
+ {
+ // the $uniqIdTable variable is used as the DIV ID in the rendered HTML
+ // we use the current Controller action name as it is supposed to be unique in the rendered page
+ $uniqIdTable = $this->currentControllerName . $this->currentControllerAction;
+ }
return $uniqIdTable;
}
More information about the Piwik-svn
mailing list