From 19c652d43872ffc012f5f56af2f645ed751f6bca Mon Sep 17 00:00:00 2001
From: renato <renato@rezo.net>
Date: Mon, 4 Sep 2006 14:16:14 +0000
Subject: [PATCH] simplified html in mini_nav

---
 dist/style_prive.html   | 8 +++++---
 ecrire/inc/mini_nav.php | 9 +++------
 2 files changed, 8 insertions(+), 9 deletions(-)

diff --git a/dist/style_prive.html b/dist/style_prive.html
index 0db2b395bb..e5356a5c98 100644
--- a/dist/style_prive.html
+++ b/dist/style_prive.html
@@ -1356,19 +1356,21 @@ a.triangle_block:hover {
 	color: #666; 
 }
 
-div.highlight {
+a.highlight {
 	color: #000;
 	padding: 2px;
 	background-color: ##ENV{couleur_claire,edf3fe};
+	display:block;
 }
 
-div.pashighlight {
+a.pashighlight {
 	color: #666;
 	padding: 2px;
 	background-color: white;
+	display:block;
 }
 
-div.highlight:hover, div.pashighlight:hover, {
+a.highlight:hover, a.pashighlight:hover, {
 	color: #000;
 	cursor: pointer;
 }
diff --git a/ecrire/inc/mini_nav.php b/ecrire/inc/mini_nav.php
index 1fa9449cb5..0428cc6084 100644
--- a/ecrire/inc/mini_nav.php
+++ b/ecrire/inc/mini_nav.php
@@ -54,12 +54,9 @@ function mini_afficher_rubrique ($id_rubrique, $rac="", $list=array(), $col = 1,
 				$url = "\nhref='$rec&amp;id=$id'" ;
 			} else {  $url = $acces = ''; }
 
-			$ret .= "<div class='"
-			. (($id == $next) ? "highlight" : "pashighlight")
-			. "'><a"
+			$ret .= "<a"
 			. $url
-# "this" sur une balise A retourne son attribut href, pas le noeud A !
-			. "\nonClick=\"changerhighlight(this.parentNode);"
+			. "\nonClick=\"changerhighlight(this);"
 			. "return aff_selection_provisoire($id,$args);"
 # ce lien provoque la selection (directe) de la rubrique cliquee
 # et l'affichage de son titre dans le bandeau
@@ -67,7 +64,7 @@ function mini_afficher_rubrique ($id_rubrique, $rac="", $list=array(), $col = 1,
 			. "return aff_selection_titre(this."
 			. $acces
 			. "firstChild.firstChild.nodeValue,$id,$args);"
-			. "\">$titre</a></div>";
+			. "\" class='". (($id == $next) ? "highlight" : "pashighlight")."'>$titre</a>";
 		}
 	}
 
-- 
GitLab