alpha_full/admin/maint/constr/construction.js
2026-04-06 22:58:51 +02:00

26 lines
743 B
JavaScript
Executable File

function valider(){
// alert('dudu');
document.getElementById('codeOpe').value='valider';
document.constrF.submit();
}
function nextLg(){
document.getElementById('codeOpe').value='nextLg';
document.constrF.submit();
}
function propagation(lgMsg=''){
const btnV = document.getElementById('btnV');
const propagerCheck = document.getElementById('propager');
// alert ('Propager = ' + propagerCheck.value +' lgMsg = '+lgMsg);
if (propagerCheck.checked ){
propagerCheck.value =1;
if(btnV) btnV.textContent="Valider pour toutes les langues" ;
}
else {
propagerCheck.value =2;
if(btnV) btnV.textContent="Valider pour "+lgMsg ;
}
//alert ('Propager = ' + document.getElementById('propager').value );
}