Skip to content
Extraits de code Groupes Projets
Valider c73a1c25 rédigé par Fil's avatar Fil
Parcourir les fichiers

bug du focus sur les groupes de mots-clés (francois)

parent a48e22ca
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -446,8 +446,7 @@ if (triangle) triangle.src = '" . _DIR_IMG_PACK . "deplierbas$spip_lang_rtl.gif' ...@@ -446,8 +446,7 @@ if (triangle) triangle.src = '" . _DIR_IMG_PACK . "deplierbas$spip_lang_rtl.gif'
echo $message_ajouter_mot; echo $message_ajouter_mot;
$message_ajouter_mot = ""; $message_ajouter_mot = "";
echo "</td>\n<td>"; echo "</td>\n<td>";
echo "<script language='text/javascript'><!--\nvar antifocus_$id_groupe = false;\n// --></script>\n"; $jscript = "onfocus=\"setvisibility('valider_groupe_$id_groupe', 'visible'); if(!antifocus_mots[$id_groupe]){this.value='';antifocus_mots[$id_groupe]=true;}\"";
$jscript = "onfocus=\"if(!antifocus_$id_groupe){this.value='';antifocus_$id_groupe=true;}\"". " onClick=\"setvisibility('valider_groupe_$id_groupe', 'visible');\"";
if ($obligatoire == "oui" AND !$groupes_vus[$id_groupe]) if ($obligatoire == "oui" AND !$groupes_vus[$id_groupe])
echo "<INPUT TYPE='text' NAME='cherche_mot' CLASS='fondl' STYLE='width: 180px; background-color:#E86519;' VALUE=\"$titre_groupe\" SIZE='20' $jscript>"; echo "<INPUT TYPE='text' NAME='cherche_mot' CLASS='fondl' STYLE='width: 180px; background-color:#E86519;' VALUE=\"$titre_groupe\" SIZE='20' $jscript>";
......
...@@ -216,4 +216,7 @@ function verifForm() { ...@@ -216,4 +216,7 @@ function verifForm() {
} }
var antifocus=false; // effacement titre quand new=oui // effacement titre quand new=oui
var antifocus=false;
// effacement titre des groupes de mots-cles de plus de 50 mots
var antifocus_mots = new Array();
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