2
0
forked from Wavyzz/dolibarr

Fix: css problem

New: add change year and month in jQuery datepicker
This commit is contained in:
Regis Houssin
2011-10-31 18:38:17 +01:00
parent d9eb4cbeb9
commit 9f4ab4c1b1
5 changed files with 24 additions and 29 deletions

View File

@@ -117,6 +117,9 @@ var tradDaysMin = <?php echo json_encode($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['<?php echo $langs->defaultlang ?>'] = {
closeText: '<?php echo $langs->trans("Close") ?>',
closeText: '<?php echo $langs->trans("Close2") ?>',
prevText: '<?php echo $langs->trans("Previous") ?>',
nextText: '<?php echo $langs->trans("Next") ?>',
currentText: '<?php echo $langs->trans("Now") ?>',
monthNames: tradMonths,
monthNamesShort: tradMonthsShort,
dayNames: tradDays,
dayNamesShort: tradDaysMin,
dayNamesMin: tradDaysShort,
dayNamesShort: tradDaysShort,
dayNamesMin: tradDaysMin,
weekHeader: '<?php echo $langs->trans("Week"); ?>',
dateFormat: '<?php echo $langs->trans("FormatDateShortJQuery"); ?>',
firstDay: <?php echo (isset($conf->global->MAIN_START_WEEK)?$conf->global->MAIN_START_WEEK:'1'); ?>,