From 1cb9d3b2ebcda3992fbce630092f2f17e39b804a Mon Sep 17 00:00:00 2001
From: Laurent Destailleur <eldy@destailleur.fr>
Date: Sat, 20 Jun 2015 17:40:36 +0200
Subject: [PATCH] Fix nohover for lines to add lines

---
 htdocs/main.inc.php             | 2 +-
 htdocs/theme/eldy/style.css.php | 5 ++++-
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/htdocs/main.inc.php b/htdocs/main.inc.php
index eceabf772af..fffd8ea0b72 100644
--- a/htdocs/main.inc.php
+++ b/htdocs/main.inc.php
@@ -796,7 +796,7 @@ if (! defined('NOREQUIRETRAN'))
 // Define some constants used for style of arrays
 $bc=array(0=>'class="impair"',1=>'class="pair"');
 $bcdd=array(0=>'class="impair drag drop"',1=>'class="pair drag drop"');
-$bcnd=array(0=>'class="impair nodrag nodrop"',1=>'class="pair nodrag nodrop"');
+$bcnd=array(0=>'class="impair nodrag nodrop nohover"',1=>'class="pair nodrag nodrop nohoverpair"');		// Used for tr to add new lines
 
 // Define messages variables
 $mesg=''; $warning=''; $error=0;
diff --git a/htdocs/theme/eldy/style.css.php b/htdocs/theme/eldy/style.css.php
index 85153272e40..44c71a304eb 100644
--- a/htdocs/theme/eldy/style.css.php
+++ b/htdocs/theme/eldy/style.css.php
@@ -2200,9 +2200,12 @@ table.dataTable tr.odd {
 }
 
 /* For no hover style */
-table.nohover tr.impair, table.nohover tr.pair, table.nohover tr.impair td, table.nohover tr.pair td {
+table.nohover tr.impair, table.nohover tr.pair, table.nohover tr.impair td, table.nohover tr.pair td, tr.nohover td {
 	background-color: #<?php echo colorArrayToHex(colorStringToArray($colorbacklineimpair1)); ?> !important;
 }
+tr.nohoverpair td {
+	background-color: #<?php echo colorArrayToHex(colorStringToArray($colorbacklinepair1)); ?> !important;
+}
 
 table.dataTable td {
     padding: 5px 2px 5px 3px !important;
-- 
GitLab