Skip to content
Extraits de code Groupes Projets
Valider c334dcdf rédigé par Thomas Steur's avatar Thomas Steur
Parcourir les fichiers

fixes #5152 fixes in IE10+ the visitorlog width changed once the mouse was over a column

parent 1fbb453c
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -15,12 +15,19 @@ use Piwik\View;
/**
* A special DataTable visualization for the Live.getLastVisitsDetails API method.
*
* @property VisitorLog\Config $config
*/
class VisitorLog extends Visualization
{
const ID = 'Piwik\Plugins\Live\VisitorLog';
const TEMPLATE_FILE = "@Live/_dataTableViz_visitorLog.twig";
public static function getDefaultConfig()
{
return new VisitorLog\Config();
}
public function beforeLoadDataTable()
{
$this->requestConfig->addPropertiesThatShouldBeAvailableClientSide(array(
......@@ -45,6 +52,7 @@ class VisitorLog extends Visualization
*/
public function beforeRender()
{
$this->config->disable_row_actions = true;
$this->config->datatable_js_type = 'VisitorLog';
$this->config->enable_sort = false;
$this->config->show_search = false;
......
<?php
/**
* Piwik - Open source web analytics
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
*/
namespace Piwik\Plugins\Live\VisitorLog;
use Piwik\ViewDataTable\Config as VisualizationConfig;
/**
* DataTable Visualization that derives from HtmlTable and sets show_extra_columns to true.
*/
class Config extends VisualizationConfig
{
/**
* Controls whether any DataTable Row Action icons are shown. If true, no icons are shown.
*
* Default value: false
*/
public $disable_row_actions = false;
public function __construct()
{
parent::__construct();
$this->addPropertiesThatShouldBeAvailableClientSide(array(
'disable_row_actions',
));
$this->addPropertiesThatCanBeOverwrittenByQueryParams(array(
'disable_row_actions',
));
}
}
......@@ -24,6 +24,10 @@
$.extend(exports.VisitorLog.prototype, dataTablePrototype, {
handleColumnHighlighting: function () {
},
/**
* Initializes this class.
*/
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter