1 397
modifications
Aucun résumé des modifications |
Aucun résumé des modifications |
||
Ligne 120 : | Ligne 120 : | ||
if(feuVertTitre && feuVertCategorie) { | if(feuVertTitre && feuVertCategorie) { | ||
lienAppelCreation = encodeURI (titreProposed + | //lienAppelCreation = encodeURI (titreProposed + | ||
// "?action=edit§ion=new&preload=Modèle:" + categorieChoisie); | |||
if(window.location.pathname == '/index.php'){ | if(window.location.pathname == '/index.php'){ | ||
//alert('On est chez ovh'); | //alert('On est chez ovh'); | ||
lienAppelCreation = window.location.pathname + '?title='; | lienAppelCreation = window.location.pathname + '?title='; | ||
lienAppelCreation = lienAppelCreation + | |||
encodeURI (titreProposed + "&action=edit§ion=new&preload=Modèle:" + categorieChoisie); | |||
}else{ | }else{ | ||
alert('On est en local'); | //alert('On est en local'); | ||
lienAppelCreation = '/index.php/'; | |||
lienAppelCreation = lienAppelCreation + titreProposed + | |||
encodeURI ( "?action=edit§ion=new&preload=Modèle:" + categorieChoisie); | |||
} | } | ||
//alert (window.location); | //alert (window.location); | ||
alert (window.location.hostname); | //alert (window.location.hostname); | ||
alert (window.location.pathname); | //alert (window.location.pathname); | ||
alert (window.location.search); | //alert (window.location.search); | ||
//alert (lienAppelCreation); | |||
// Réinitialisation au cas où on utiliserait le bouton retour du navigateur | // Réinitialisation au cas où on utiliserait le bouton retour du navigateur |