diff --git a/src/main/webapp/scripts/ezCalendar.js b/src/main/webapp/scripts/ezCalendar.js index a1e0828c1b31f9d44af3ecf713cf9f9f302d5d83..b27b9acc59718dc18ba23f4b8d51f475064c73e3 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; }