From 65505ac16b168a6f6f1f41f9a3a27c97f898c49b Mon Sep 17 00:00:00 2001 From: Mike McKay <mfmckay@wustl.edu> Date: Thu, 12 May 2016 06:24:04 -0500 Subject: [PATCH] XNATX-428 Readded fix that got lost in move to 1.7 for issue with the calendar that caused multiple modals to be spawned in visits and protocols. --- src/main/webapp/scripts/ezCalendar.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/webapp/scripts/ezCalendar.js b/src/main/webapp/scripts/ezCalendar.js index a1e0828c..b27b9acc 100644 --- a/src/main/webapp/scripts/ezCalendar.js +++ b/src/main/webapp/scripts/ezCalendar.js @@ -641,7 +641,7 @@ $(function(){ var $input = $(input); var format = XNAT.app.utils.getValueByClass($input,['iso','us','eu','euro']); var val = $input.val(); - if (val === ('__/__/____' || '____-__-__' || '')){ + if (val === '__/__/____' || val === '____-__-__' || val === ''){ $input.val(''); return false; } -- GitLab