Skip to content
Extraits de code Groupes Projets
Valider 19c652d4 rédigé par renato's avatar renato
Parcourir les fichiers

simplified html in mini_nav

parent d28cfa4f
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -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;
}
......
......@@ -54,12 +54,9 @@ function mini_afficher_rubrique ($id_rubrique, $rac="", $list=array(), $col = 1,
$url = "\nhref='$rec&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>";
}
}
......
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