98 lines
3.5 KiB
JavaScript
Executable File
98 lines
3.5 KiB
JavaScript
Executable File
|
|
function f(content) {
|
|
alert(content.html());
|
|
// alert('ed2');
|
|
}
|
|
|
|
$(function(){
|
|
// $("#Gallerie1").imgDropDown({placeholder:"Gallerie1"});
|
|
$(document).ready(function() {
|
|
$("#Gallerie1").imgDropDown({title:"Gallerie1"});
|
|
$("#Gallerie2").imgDropDown({title:"Gallerie2"});
|
|
$("#fontAwesome").imgDropDown({title:"fontAwesome"});
|
|
$("#Gallerie4").imgDropDown({title:"Gallerie4"});
|
|
$("#Gallerie5").imgDropDown({title:"Gallerie5"});
|
|
$("#Gallerie6").imgDropDown({title:"Gallerie6"});
|
|
if (document.getElementById('zoneFormModales') ){ document.getElementById('zoneFormModales').style.display='block'; }
|
|
});
|
|
});
|
|
|
|
|
|
function choixIco (theElement){
|
|
debugLocal=0;
|
|
var theIco;
|
|
if(debugLocal==1) alert('theElement = '+theElement);
|
|
|
|
if (theElement=='Gallerie1'){
|
|
if (document.getElementById('Gallerie1-opt') ){ theIco=document.getElementById('Gallerie1-opt').value; }
|
|
}
|
|
|
|
if (theElement=='Gallerie2'){
|
|
if (document.getElementById('Gallerie2-opt') ){ theIco=document.getElementById('Gallerie2-opt').value; }
|
|
}
|
|
|
|
if (theElement=='fontAwesome'){
|
|
if (document.getElementById('fontAwesome-opt') ){ theIco=document.getElementById('fontAwesome-opt').value; }
|
|
}
|
|
|
|
if (theElement=='Gallerie4'){
|
|
if (document.getElementById('Gallerie4-opt') ){ theIco=document.getElementById('Gallerie4-opt').value; }
|
|
}
|
|
|
|
if (theElement=='Gallerie5'){
|
|
if (document.getElementById('Gallerie5-opt') ){ theIco=document.getElementById('Gallerie5-opt').value; }
|
|
}
|
|
|
|
if (theElement=='Gallerie6'){
|
|
if (document.getElementById('Gallerie6-opt') ){ theIco=document.getElementById('Gallerie6-opt').value; }
|
|
}
|
|
|
|
document.getElementById('theIco').value=theIco;
|
|
if(debugLocal==1) alert('ico = '+theIco);
|
|
document.getElementById('codeOpe').value="majIco";
|
|
// document.choixIconeForm.submit();
|
|
}
|
|
|
|
function updateIco(){
|
|
debugLocal=0;
|
|
theIco=document.getElementById('theIco').value;
|
|
if(debugLocal==1) alert ('theIco = '+theIco);
|
|
|
|
// document.getElementById('theIco').value=theIco;
|
|
document.getElementById ( 'codeOpe' ).value='majIco';
|
|
document.choixIconeForm.submit();
|
|
}
|
|
|
|
function toggleProp(propager){
|
|
debugLocal=0;
|
|
|
|
if (document.getElementById('propager').checked==true) {
|
|
if(debugLocal==1) alert('propager == checked');
|
|
if ( document.getElementById('btnValid')) document.getElementById('btnValid').innerHTML = document.getElementById('btnValid').innerHTML+' et propager aux autres langues';
|
|
}
|
|
else {
|
|
if(debugLocal==1) alert('propager == non checked');
|
|
if ( document.getElementById('btnValid')) document.getElementById('btnValid').innerHTML = document.getElementById('btnValid').innerHTML.replace(' et propager aux autres langues', '');
|
|
}
|
|
}
|
|
|
|
function langueSuivanteIco(){
|
|
// alert ('langueSuivante');
|
|
document.getElementById('codeOpe').value="majIco";
|
|
document.choixIconeForm.submit();
|
|
}
|
|
|
|
|
|
/* ----------------------------------------------- */
|
|
/* ImgPt : bouton download : oldImage permet d'"essayer d'avoir le folder pour le upload
|
|
/* ----------------------------------------------- */
|
|
function uploadImg ( idLanguenav, theIco, theOldImage ) {
|
|
debugLocal=0;
|
|
if (debugLocal==1 ) alert ( "uploadImg => idLanguenav : " + idLanguenav + ' | theIco : '+ theIco + ' | theOldImage : '+ theOldImage ) ;
|
|
document.getElementById ( 'theIco' ) .value=theIco;
|
|
document.getElementById ( 'idLanguenav' ) .value=idLanguenav;
|
|
document.getElementById ( 'theOldImage' ) .value=theOldImage;
|
|
document.getElementById ( 'codeOpe' ) .value='uploadImg';
|
|
// ancreSection ( c ) ;
|
|
document.choixIconeForm.submit ( ) ;
|
|
} |