diff --git a/htdocs/core/js/datepicker.js.php b/htdocs/core/js/datepicker.js.php index 2d36a5cb95b..19cfbeecd55 100644 --- a/htdocs/core/js/datepicker.js.php +++ b/htdocs/core/js/datepicker.js.php @@ -117,6 +117,9 @@ var tradDaysMin = ; // For JQuery date picker $(document).ready(function() { $.datepicker.setDefaults({ + autoSize: true, + changeMonth: true, + changeYear: true, altField: '#timeStamp', altFormat: '@' // Gives a timestamp dateformat }); @@ -124,15 +127,15 @@ $(document).ready(function() { jQuery(function($){ $.datepicker.regional['defaultlang ?>'] = { - closeText: 'trans("Close") ?>', + closeText: 'trans("Close2") ?>', prevText: 'trans("Previous") ?>', nextText: 'trans("Next") ?>', currentText: 'trans("Now") ?>', monthNames: tradMonths, monthNamesShort: tradMonthsShort, dayNames: tradDays, - dayNamesShort: tradDaysMin, - dayNamesMin: tradDaysShort, + dayNamesShort: tradDaysShort, + dayNamesMin: tradDaysMin, weekHeader: 'trans("Week"); ?>', dateFormat: 'trans("FormatDateShortJQuery"); ?>', firstDay: global->MAIN_START_WEEK)?$conf->global->MAIN_START_WEEK:'1'); ?>, diff --git a/htdocs/theme/auguria/style.css.php b/htdocs/theme/auguria/style.css.php index 72932dc09bb..4451b2ec24a 100644 --- a/htdocs/theme/auguria/style.css.php +++ b/htdocs/theme/auguria/style.css.php @@ -1462,16 +1462,9 @@ opacity: 1; /* Calendar */ /* ============================================================================== */ -.ui-datepicker-title { - margin: 0 !important; - line-height: 28px; -} -.ui-datepicker-month { - margin: 0 !important; - padding: 0 !important; -} -.ui-datepicker-header { - height: 28px !important; +.ui-datepicker-trigger { + vertical-align: middle; + cursor: pointer; } .bodyline { @@ -1632,7 +1625,7 @@ table.cal_event td { border: 0px; padding-: 0px; padding-) right center no-repeat; cursor: pointer; } diff --git a/htdocs/theme/bureau2crea/style.css.php b/htdocs/theme/bureau2crea/style.css.php index f0d92a9eaa7..78901d45668 100644 --- a/htdocs/theme/bureau2crea/style.css.php +++ b/htdocs/theme/bureau2crea/style.css.php @@ -1680,6 +1680,12 @@ opacity: 1; /* ============================================================================== */ /* Calendar */ /* ============================================================================== */ + +.ui-datepicker-trigger { + vertical-align: middle; + cursor: pointer; +} + .bodyline { -moz-border-radius:8px; border: 1px #E4ECEC outset; @@ -1838,7 +1844,7 @@ table.cal_event td { border: 0px; padding-: 0px; padding-) right center no-repeat; cursor: pointer; } diff --git a/htdocs/theme/cameleo/style.css.php b/htdocs/theme/cameleo/style.css.php index 83d7925af2f..74eb6232632 100644 --- a/htdocs/theme/cameleo/style.css.php +++ b/htdocs/theme/cameleo/style.css.php @@ -1574,6 +1574,12 @@ border-radius:6px; /* ============================================================================== */ /* Calendar */ /* ============================================================================== */ + +.ui-datepicker-trigger { + vertical-align: middle; + cursor: pointer; +} + .bodyline { padding: 0px; margin-bottom: 5px; @@ -1782,7 +1788,7 @@ table.cal_event td { border: 0px; padding-: 0px; padding-) right center no-repeat; cursor: pointer; } diff --git a/htdocs/theme/eldy/style.css.php b/htdocs/theme/eldy/style.css.php index 1aa007b8597..e0908f3d37f 100644 --- a/htdocs/theme/eldy/style.css.php +++ b/htdocs/theme/eldy/style.css.php @@ -1495,19 +1495,6 @@ border-radius: 6px; /* Calendar */ /* ============================================================================== */ -.ui-datepicker-title { - margin: 0 !important; - line-height: 28px; - z-index: 3000; -} -.ui-datepicker-month { - margin: 0 !important; - padding: 0 !important; -} -.ui-datepicker-header { - height: 28px !important; -} - .ui-datepicker-trigger { vertical-align: middle; cursor: pointer;