Skip to content
Snippets Groups Projects
Commit 641905d2 authored by Giovannoni Laurent's avatar Giovannoni Laurent
Browse files

FIX #4119 fix actions

parent 0bded776
No related branches found
No related tags found
No related merge requests found
......@@ -698,7 +698,7 @@ abstract class visa_Abstract extends Database
$str .= '<tr ' . $color . '>';
if ($bool_modif){
if ($isVisaStep && $myPosVisa >= $seq)
if (($isVisaStep && $myPosVisa >= $seq) || $circuit['sign']['users'][0]['process_date'] != '')
$disabled = ' disabled ';
else
$disabled = '';
......@@ -741,7 +741,8 @@ abstract class visa_Abstract extends Database
$str .= '</select>';
$str .= '<span id="signatory_' . $seq . '"><i title="Signataire" style="color : #fdd16c" class="fa fa-certificate fa-lg fa-fw"></i></span></td>';
if ($isVisaStep && ($myPosVisa+1 == $seq || $myPosVisa == $seq))
if (($isVisaStep && ($myPosVisa+1 == $seq || $myPosVisa == $seq)) || $circuit['sign']['users'][0]['process_date'] != '' || $circuit['visa']['users'][$seq-1]['process_date'] != '')
$up = ' style="visibility:hidden"';
else
$up = ' style="visibility:visible"';
......@@ -751,11 +752,17 @@ abstract class visa_Abstract extends Database
// else $add = ' style="visibility:visible"';
$add = ' style="visibility:visible"';
if ($isVisaStep && $myPosVisa == $seq)
if (($isVisaStep && $myPosVisa == $seq) || $circuit['sign']['users'][0]['process_date'] != '' || $circuit['visa']['users'][$seq-1]['process_date'] != '')
$del = ' style="visibility:hidden"';
else
$del = ' style="visibility:visible"';
if ($circuit['sign']['users'][0]['process_date'] != '')
$add = ' style="visibility:hidden"';
else
$add = ' style="visibility:visible"';
if (count ($circuit['visa']['users']) == 0){
$up = 'style="visibility:hidden"';
$del = 'style="visibility:hidden"';
......
......@@ -168,13 +168,19 @@ function refreshIcones(id_tableau){
//document.getElementById("up_"+num).style.visibility="hidden";
document.getElementById("isSign_"+num).style.visibility="hidden";
}
/* si la ligne précédente est désactive */
if (num > 0) {
prev_num = num-1;
//console.log(document.getElementById('conseiller_'+prev_num));
if (arrayLignes[i-1].cells[0].childNodes[1].disabled == true){
document.getElementById("up_"+num).style.visibility="hidden";
if(i == longueur-1){
document.getElementById("suppr_"+num).style.visibility="hidden";
}
}
}
/*************************************************/
if (i == longueur-1 && document.getElementById("signatory_"+num)){
......@@ -201,7 +207,7 @@ function addRow(id_tableau)
var id_Cons = "conseiller_0";
var last_select = tableau.rows.length-3;
console.log(document.getElementById('conseiller_'+last_select));
//console.log(document.getElementById('conseiller_'+last_select));
//var listeDeroulante = document.getElementById(id_Cons);
var listeDeroulante = document.getElementById('conseiller_'+last_select);
var colonne2 = ligne.insertCell(0);//on ajoute la seconde cellule
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment