From cff6539539a79e014f6ac8df46716cafce2c8472 Mon Sep 17 00:00:00 2001 From: pifou Date: Mon, 2 Jul 2007 14:02:16 +0000 Subject: [PATCH] FIX git-svn-id: svn://euphorik.ch/pompage@44 02bbb61a-6d21-0410-aba0-cb053bdfd66a --- css/yopyop.css | 10 +++++++++- js/yopyop.js | 8 ++++---- xsl/yopyop.xsl | 12 ++++++------ 3 files changed, 19 insertions(+), 11 deletions(-) diff --git a/css/yopyop.css b/css/yopyop.css index 3647e35..40aae37 100644 --- a/css/yopyop.css +++ b/css/yopyop.css @@ -293,12 +293,20 @@ table#liste table.detail { } table#liste table.detail td { - padding: 3px 6px 3px 6px; background-color: #B1F1A9; } +table#liste table.detail td.affichette { + width: 0px; + padding: 4px; +} table#liste table.detail td.titreDetail { font-weight: bold; + width: 0px; +} +table#liste table.detail td.detail { + width: 100%; + padding-left: 10px; } div.pied { diff --git a/js/yopyop.js b/js/yopyop.js index 4b48c8a..1bad4bd 100644 --- a/js/yopyop.js +++ b/js/yopyop.js @@ -200,15 +200,15 @@ function viderRecherche() function toutOuvrir() { var lignes = document.getElementById("liste").childNodes - var ouvrir = true + var ouvrir = null for(var i = 0; i < lignes.length; i += 2) { var tableDetails = lignes[i+1].firstChild.firstChild.childNodes - if (lignes[i+1].style.display = "table-row") + // si le film est affiché + if (lignes[i].style.display == "table-row") { - if (i == 0 && lignes[i+1].firstChild.firstChild.style.display == "table") - ouvrir = false + if (ouvrir == null) ouvrir = lignes[i+1].firstChild.firstChild.style.display == "none" lignes[i+1].firstChild.firstChild.style.display = ouvrir ? "table" : "none" } } diff --git a/xsl/yopyop.xsl b/xsl/yopyop.xsl index 22225da..d9aca58 100644 --- a/xsl/yopyop.xsl +++ b/xsl/yopyop.xsl @@ -54,27 +54,27 @@ - - + - + - + - + - -- 2.45.2
+ Genres, ,
Réalisateurs, ,
Acteurs, ,
Pays, ,
Synopsis +