Aller au contenu

« Utilisateur:Daniel/common.js » : différence entre les versions

aucun résumé des modifications
Aucun résumé des modifications
Aucun résumé des modifications
Ligne 81 : Ligne 81 :


$( '.dsg_TitreNouvellePage' ).append(fieldtitre.$element );
$( '.dsg_TitreNouvellePage' ).append(fieldtitre.$element );
$( '.dsg_TestButton' ).append(buttonCreerRecette.$element );
$( '.dsg_creationRecette' ).append(buttonCreerRecette.$element );
$( '.dsg_ButtonChoixCategorie' ).append(buttonSelect.$element );
$( '.dsg_ButtonChoixCategorie' ).append(buttonSelect.$element );


Ligne 120 : Ligne 120 :
if(feuVertTitre && feuVertCategorie) {
if(feuVertTitre && feuVertCategorie) {
//lienAppelCreation = encodeURI (titreProposed +
 
// "?action=edit&section=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');
Ligne 135 : Ligne 133 :


}
}
//alert (window.location);
 
//alert (window.location.hostname);
//alert (window.location.pathname);
//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
buttonCreerRecette.setDisabled(true);
buttonCreerRecette.setDisabled(true);