Debug last commit

This commit is contained in:
Adrien RENARD 2024-02-03 16:08:01 +01:00
parent c97ca1f48d
commit e8b0966a01
3 changed files with 8 additions and 5 deletions

View File

@ -15,7 +15,9 @@
#modalViewClient div.tabAbsences table td.ref { width: 30px; } #modalViewClient div.tabAbsences table td.ref { width: 30px; }
#modalViewClient div.tabAbsences table td.date { text-align: center; padding: 8px 0; } #modalViewClient div.tabAbsences table td.date { text-align: center; padding: 8px 0; }
#modalViewClient div.tabAbsences table th.debut { width: 130px; }
#modalViewClient div.tabAbsences table td.debut { width: 130px; } #modalViewClient div.tabAbsences table td.debut { width: 130px; }
#modalViewClient div.tabAbsences table th.fin { width: 122px; }
#modalViewClient div.tabAbsences table td.fin { width: 120px; } #modalViewClient div.tabAbsences table td.fin { width: 120px; }
#modalViewClient div.tabAbsences table tr.editable { background-color: #cce4f9; } #modalViewClient div.tabAbsences table tr.editable { background-color: #cce4f9; }

View File

@ -145,8 +145,9 @@ function modalViewClient_initTabAbsences() {
// BTN ADD ABSENCES // BTN ADD ABSENCES
modalViewClient.find("#btnAddAbsence").click(function(e) { modalViewClient.find("#btnAddAbsence").click(function(e) {
e.preventDefault(); $(this).blur(); e.preventDefault(); $(this).blur();
if(modalViewClient.find("div.tabAbsences table tbody tr.editable").length>0) return;
var tr = $("<tr ref='new'></tr>").html( modalViewClient.find("tr.absenceNewRowTemplate").html() ); var tr = $("<tr class='absence' ref='new'></tr>").html( modalViewClient.find("tr.absenceNewRowTemplate").html() );
modalViewClient.find("div.tabAbsences table tbody").append(tr); modalViewClient.find("div.tabAbsences table tbody").append(tr);
nullChild = modalViewClient.find("div.tabAbsences table tbody tr.nullChild"); nullChild = modalViewClient.find("div.tabAbsences table tbody tr.nullChild");

View File

@ -1,8 +1,8 @@
<table class="table"> <table class="table">
<thead> <thead>
<tr class="head"> <tr class="head">
<th class="center date">debut</th> <th class="center date debut">debut</th>
<th class="center date">fin</th> <th class="center date fin">fin</th>
<th>remarque</th> <th>remarque</th>
<th class="btn_action right" colspan="2"><button class="btn btn-xs btn-info glyphicon glyphicon-plus" id="btnAddAbsence"></button></th> <th class="btn_action right" colspan="2"><button class="btn btn-xs btn-info glyphicon glyphicon-plus" id="btnAddAbsence"></button></th>
</tr> </tr>
@ -24,8 +24,8 @@
</tbody> </tbody>
<tfoot class="hide"> <tfoot class="hide">
<tr class="absenceNewRowTemplate"> <tr class="absenceNewRowTemplate">
<td class="debut"></td> <td class="date debut"></td>
<td class="fin"></td> <td class="date fin"></td>
<td class="remarque"></td> <td class="remarque"></td>
<td class="td_btn_action"><button class="btn btn-xs btn-link glyphicon glyphicon-edit btnEditAbsence" ref="new"></button></td> <td class="td_btn_action"><button class="btn btn-xs btn-link glyphicon glyphicon-edit btnEditAbsence" ref="new"></button></td>
<td class="td_btn_action td_btn_delete"><button class="btn btn-xs btn-link glyphicon glyphicon-trash btnDeleteAbsence" ref="new" periode="new"></button></td> <td class="td_btn_action td_btn_delete"><button class="btn btn-xs btn-link glyphicon glyphicon-trash btnDeleteAbsence" ref="new" periode="new"></button></td>