// Added row_hover parameter to enable or disable row color on hover

This commit is contained in:
bMancone
2012-01-23 10:22:41 +00:00
parent 84f4d0838c
commit 5e36dd0b97
5 changed files with 15 additions and 7 deletions
+5 -2
View File
@@ -226,15 +226,17 @@ class AdminControllerCore extends Controller
protected $noLink;
protected $specificConfirmDelete;
protected $colorOnBackground;
/** @var bool If true, activates color on hover */
protected $row_hover = true;
/** @string Action to perform : 'edit', 'view', 'add', ... */
protected $action;
protected $display;
protected $_includeContainer = true;
public $tpl_folder;
protected $bo_theme;
/** @var bool Redirect or not ater a creation */
protected $_redirect = true;
@@ -1575,6 +1577,7 @@ class AdminControllerCore extends Controller
$helper->default_form_language = $this->default_form_language;
$helper->allow_employee_form_lang = $this->allow_employee_form_lang;
$helper->multiple_fieldsets = $this->multiple_fieldsets;
$helper->row_hover = $this->row_hover;
// For each action, try to add the corresponding skip elements list
$helper->list_skip_actions = $this->list_skip_actions;
+5
View File
@@ -97,6 +97,9 @@ class HelperListCore extends Helper
public $specificConfirmDelete;
public $colorOnBackground;
/** @var bool If true, activates color on hover */
public $row_hover = true;
protected $identifiersDnd = array(
'id_product' => 'id_product',
'id_category' => 'id_category_to_move',
@@ -335,6 +338,7 @@ class HelperListCore extends Helper
'has_actions' => !empty($this->actions),
'has_bulk_actions' => !empty($this->bulk_actions),
'list_skip_actions' => $this->list_skip_actions,
'row_hover' => $this->row_hover,
)));
return $this->content_tpl->fetch();
}
@@ -620,6 +624,7 @@ class HelperListCore extends Helper
'table_dnd' => isset($table_dnd) ? $table_dnd : null,
'name' => isset($name) ? $name : null,
'name_id' => isset($name_id) ? $name_id : null,
'row_hover' => $this->row_hover,
)));
return $this->header_tpl->fetch();