diff options
author | Benaka Moorthi <benaka.moorthi@gmail.com> | 2013-07-11 03:21:08 +0400 |
---|---|---|
committer | Benaka Moorthi <benaka.moorthi@gmail.com> | 2013-07-11 03:21:08 +0400 |
commit | 4f0e655a7c9fade57851bb539db285c8f88ae35c (patch) | |
tree | af799681f2be501bc201c6f8356dca03c0ea5868 /plugins/Actions | |
parent | 00839a262d4757a6a3ae3326a848220255003614 (diff) |
Refs #4041, allow subtable template to be used if idSubtable is in request so Actions controller doesn't have to call setTemplate. Also did some mild refactoring for Piwik_ViewDataTable_HtmlTable::setRecursiveLoadDataTableIfSearchingForPattern.
Diffstat (limited to 'plugins/Actions')
-rw-r--r-- | plugins/Actions/Controller.php | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/plugins/Actions/Controller.php b/plugins/Actions/Controller.php index d8bf8a12c6..4980cd7764 100644 --- a/plugins/Actions/Controller.php +++ b/plugins/Actions/Controller.php @@ -454,14 +454,11 @@ class Piwik_Actions_Controller extends Piwik_Controller { $view->setDataTableType('dataTableActions'); $view->setJsType('actionDataTable'); + $view->setSubtableTemplate('@CoreHome/_dataTableActions_subDataTable.twig'); - - if (Piwik_Common::getRequestVar('idSubtable', -1) != -1) { - $view->setTemplate('@CoreHome/_dataTableActions_subDataTable'); - } - $currentlySearching = $view->setSearchRecursive(); - if ($currentlySearching) { - $view->showExpanded($subtableTemplate = '@CoreHome/_dataTableActions_subDataTable.twig'); + $view->setSearchRecursive(); + if ($view->isLoadingExpandedDataTable()) { + $view->showExpanded(); // set levelN css class for each row $self = $this; |