From 2f02ec84e9aea2db400507a0ffaab0916ea4826d Mon Sep 17 00:00:00 2001
From: "Committo,Ergo:sum" <esj@rezo.net>
Date: Wed, 7 Nov 2007 16:33:24 +0000
Subject: [PATCH] =?UTF-8?q?Ne=20pas=20confondre=20id=5Fgroupe=20et=20id=5F?=
 =?UTF-8?q?rubrique=20dans=20EXPOSE=20(Pierre=20F.).=20Et=20une=20bulle=20?=
 =?UTF-8?q?d'aide=20dans=20le=20d=C3=A9busqueur=20pour=20savoir=20qu'on=20?=
 =?UTF-8?q?peut=20effacer=20les=20num=C3=A9ros=20de=20lignes.?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 ecrire/public/composer.php |  2 +-
 ecrire/public/debug.php    | 10 +++++++---
 2 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/ecrire/public/composer.php b/ecrire/public/composer.php
index 3b5963e7e0..5f6ff6d6cc 100644
--- a/ecrire/public/composer.php
+++ b/ecrire/public/composer.php
@@ -309,7 +309,7 @@ function calcul_exposer ($id, $prim, $reference, $parent, $type) {
 			$exposer= array($type => array($principal => true));
 			if ($type == 'id_mot')
 				$exposer['id_groupe'][$parent] = true;
-			if ($type != 'id_groupe') {
+			else if ($type != 'id_groupe') {
 			  if (!$parent) $parent = $principal;
 			  $a = split(',',calculer_hierarchie($parent));
 			  foreach($a as $n) $exposer['id_rubrique'][$n] = true;
diff --git a/ecrire/public/debug.php b/ecrire/public/debug.php
index ad5ab86361..83038b5dd9 100644
--- a/ecrire/public/debug.php
+++ b/ecrire/public/debug.php
@@ -379,10 +379,14 @@ function ancre_texte($texte, $fautifs=array(), $nocpt=false)
 	}
 	$js = "this.style.visibility=this.style.visibility=='visible'?'hidden' : 'visible'";
 
-	return "\n<table id='T$ancre' style='border: 0px;'>"
-	  . "\n<tr><th onclick=\"\$('.sinumerote').each(function(){ $js })\" >"
+	return "\n<table id='T$ancre' style='border: 0px;'>\n"
+	  . '<tr><th><a onclick="javascript:'
+	  . "\$('.sinumerote').each(function(){ $js }); return false;"
+	  . '" title="'
+	  . _L('Masquer cette colonne')
+	  . '" >'
 	  . _T('info_numero_abbreviation')
-	  . "</th>\n<th style='text-align: center'>"
+	  . "</a></th>\n<th style='text-align: center'>"
 	  . _T('info_texte')
 	  . "</th></tr>"
 	  . $res
-- 
GitLab