From 104b118b1d104bb7fc3b6e77af8c83f8aa27d50f Mon Sep 17 00:00:00 2001
From: Alex Orluc <alex.orluc@maarch.org>
Date: Wed, 5 Apr 2017 20:48:44 +0200
Subject: [PATCH] fix event backdate

---
 modules/attachments/js/functions.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/attachments/js/functions.js b/modules/attachments/js/functions.js
index 7eafa471c96..798aa78e633 100644
--- a/modules/attachments/js/functions.js
+++ b/modules/attachments/js/functions.js
@@ -204,7 +204,7 @@ function addNewTransmission(prePath, docId, canCreateContact, langString, user)
                     "<p>" +
                       "<label>" + "Date de retour attendue" + "</label>" +
                       "<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);' onchange='checkBackDate(this)' value='' style='width: 75px' />" +
+                      "<input type='text' name='transmissionBackDate" + size + "' id='transmissionBackDate" + size + "' onClick='showCalender(this);' onchange='checkBackDate(this)' onfocus='checkBackDate(this)' value='' style='width: 75px' />" +
                       "<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='NO_RTURN'>Pas de retour</option>" +
-- 
GitLab