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

refermer aussi le bandeau "A suivre" pour boutons supplémentaires éventuels (Cedric)

+ normalisation des espaces
parent 1f698386
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -2,13 +2,14 @@ var init_gauche = true; ...@@ -2,13 +2,14 @@ var init_gauche = true;
function changestyle(id_couche, element, style) { function changestyle(id_couche, element, style) {
if (admin) { if (admin) {
hide_obj("bandeauaccueil");
hide_obj("bandeaunaviguer"); hide_obj("bandeaunaviguer");
hide_obj("bandeauforum_admin"); hide_obj("bandeauforum_admin");
hide_obj("bandeauauteurs"); hide_obj("bandeauauteurs");
if (stat) { hide_obj("bandeaustatistiques_visites"); } if (stat) { hide_obj("bandeaustatistiques_visites"); }
hide_obj("bandeauconfiguration"); hide_obj("bandeauconfiguration");
} }
hide_obj("bandeaudeconnecter"); hide_obj("bandeaudeconnecter");
hide_obj("bandeautoutsite"); hide_obj("bandeautoutsite");
hide_obj("bandeaunavrapide"); hide_obj("bandeaunavrapide");
...@@ -21,20 +22,19 @@ function changestyle(id_couche, element, style) { ...@@ -21,20 +22,19 @@ function changestyle(id_couche, element, style) {
hide_obj("bandeaudisplay"); hide_obj("bandeaudisplay");
hide_obj("bandeauecran"); hide_obj("bandeauecran");
hide_obj("bandeauinterface"); hide_obj("bandeauinterface");
if (init_gauche) { if (init_gauche) {
if (admin) { if (admin) {
decalerCouche('bandeaunaviguer'); decalerCouche('bandeauaccueil');
decalerCouche('bandeauforum_admin'); decalerCouche('bandeaunaviguer');
decalerCouche('bandeauauteurs'); decalerCouche('bandeauforum_admin');
if (stat) decalerCouche('bandeaustatistiques_visites'); decalerCouche('bandeauauteurs');
decalerCouche('bandeauconfiguration'); if (stat) decalerCouche('bandeaustatistiques_visites');
} decalerCouche('bandeauconfiguration');
}
init_gauche = false; init_gauche = false;
} }
if (!(layer = findObj(id_couche))) return; if (!(layer = findObj(id_couche))) return;
layer.style[element] = style; layer.style[element] = style;
...@@ -48,20 +48,20 @@ function decalerCouche(id_couche) { ...@@ -48,20 +48,20 @@ function decalerCouche(id_couche) {
gauche = parseInt(layer.style.left) gauche = parseInt(layer.style.left)
- demilargeur - demilargeur
+ Math.floor(largeur_icone / 2); + Math.floor(largeur_icone / 2);
if (gauche < 0) gauche = 0; if (gauche < 0) gauche = 0;
layer.style.left = gauche+"px"; layer.style.left = gauche+"px";
} }
} }
var accepter_change_statut; var accepter_change_statut;
function selec_statut(id, type, decal, puce, script) { function selec_statut(id, type, decal, puce, script) {
if (!accepter_change_statut) { if (!accepter_change_statut) {
accepter_change_statut = confirm(confirm_changer_statut) accepter_change_statut = confirm(confirm_changer_statut)
} }
if (accepter_change_statut) { if (accepter_change_statut) {
...@@ -73,23 +73,21 @@ function selec_statut(id, type, decal, puce, script) { ...@@ -73,23 +73,21 @@ function selec_statut(id, type, decal, puce, script) {
} }
} }
function changeclass(objet, myClass) function changeclass(objet, myClass) {
{ objet.className = myClass;
objet.className = myClass;
} }
function changesurvol(iddiv, myClass) function changesurvol(iddiv, myClass) {
{ document.getElementById(iddiv).className = myClass;
document.getElementById(iddiv).className = myClass;
} }
function setActiveStyleSheet(title) { function setActiveStyleSheet(title) {
var i, a, main; var i, a, main;
for(i=0; (a = document.getElementsByTagName("link")[i]); i++) { for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {
if(a.getAttribute("rel").indexOf("style") != -1 if(a.getAttribute("rel").indexOf("style") != -1
&& a.getAttribute("title")) { && a.getAttribute("title")) {
a.disabled = true; a.disabled = true;
if(a.getAttribute("title") == title) a.disabled = false; if(a.getAttribute("title") == title) a.disabled = false;
} }
} }
} }
function setvisibility (objet, statut) { function setvisibility (objet, statut) {
...@@ -164,13 +162,10 @@ function changeVisible(input, id, select, nonselect) { ...@@ -164,13 +162,10 @@ function changeVisible(input, id, select, nonselect) {
element = findObj(id); element = findObj(id);
if (element.style.display != nonselect) element.style.display = nonselect; if (element.style.display != nonselect) element.style.display = nonselect;
} }
} }
// pour MOzilla >= 1.7 // pour MOzilla >= 1.7
function verifForm() { function verifForm() {
/* if (pluginlist.indexOf("SVG")!=-1) /* if (pluginlist.indexOf("SVG")!=-1)
......
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