Skip to content
Snippets Groups Projects
Commit f314bc69 authored by Alex ORLUC's avatar Alex ORLUC
Browse files

FEAT #4774 add RAZ if NO_RETRN

parent 7e655dc0
No related branches found
No related tags found
No related merge requests found
...@@ -148,6 +148,14 @@ function delLastTransmission() { ...@@ -148,6 +148,14 @@ function delLastTransmission() {
} }
} }
function hideInput(currentValue, editDate) {
if (currentValue == "NO_RTURN") {
editDate.value = null
} else {
editDate.value = defineBackDate();
}
}
function addNewTransmission(prePath, docId, canCreateContact, langString, user) { function addNewTransmission(prePath, docId, canCreateContact, langString, user) {
var size = $j('#transmission')[0].childElementCount; var size = $j('#transmission')[0].childElementCount;
...@@ -195,7 +203,7 @@ function addNewTransmission(prePath, docId, canCreateContact, langString, user) ...@@ -195,7 +203,7 @@ function addNewTransmission(prePath, docId, canCreateContact, langString, user)
"<label>" + "Date de retour attendue" + "</label>" + "<label>" + "Date de retour attendue" + "</label>" +
"<input type='hidden' name='withDelay" + size + "' id='withDelay" + size + "' value='' style='width: 75px' />" + "<input type='hidden' name='withDelay" + size + "' id='withDelay" + size + "' value='' style='width: 75px' />" +
"<input type='text' name='transmissionBackDate" + size + "' id='transmissionBackDate" + size + "' onClick='showCalender(this);' onfocus='checkBackDate(this)' value='' style='width: 75px' />" + "<input type='text' name='transmissionBackDate" + size + "' id='transmissionBackDate" + size + "' onClick='showCalender(this);' onfocus='checkBackDate(this)' value='' style='width: 75px' />" +
"<select name='transmissionExpectedDate" + size + "' id='transmissionExpectedDate" + size + "' style='margin-left: 20px;width: 105px' />" + "<select name='transmissionExpectedDate" + size + "' id='transmissionExpectedDate" + size + "' style='margin-left: 20px;width: 105px' onchange = 'hideInput(this.options[this.selectedIndex].value,transmissionBackDate" + size +")'/>" +
"<option value='EXP_RTURN'>Attente retour</option>" + "<option value='EXP_RTURN'>Attente retour</option>" +
"<option value='NO_RTURN'>Pas de retour</option>" + "<option value='NO_RTURN'>Pas de retour</option>" +
"</select>" + "</select>" +
......
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