CRM-15275 - Fix datepicker error with certain format
authorColeman Watts <coleman@civicrm.org>
Sat, 27 Sep 2014 01:50:51 +0000 (21:50 -0400)
committerColeman Watts <coleman@civicrm.org>
Sat, 27 Sep 2014 01:50:51 +0000 (21:50 -0400)
templates/CRM/common/jcalendar.tpl

index 92fd8b3982984122d478febb9e8a0e7b150a9a44..9cc20457e58bd1901b0691978f581b47b993dc3b 100644 (file)
         date_format = $originalElement.attr('format'),
         altDateFormat = 'mm/dd/yy';
       {literal}
-      switch ( date_format ) {
-        case 'dd-mm':
-        case 'mm/dd':
-            altDateFormat = 'mm/dd';
-            break;
-      }
 
       if ( !( ( date_format == 'M yy' ) || ( date_format == 'yy' ) || ( date_format == 'yy-mm' ) ) ) {
           $dateElement.addClass( 'dpDate' );