Permalink
Browse files

Fix - DatePicker for mm_ddMultipleFields

  • Loading branch information...
yama committed Aug 23, 2016
1 parent 0b5b6eb commit 5643c4b45f08606f7378cc36ce5388be513bccba
Showing with 32 additions and 30 deletions.
  1. +32 −30 manager/media/script/air-datepicker/datepicker.tpl
@@ -3,36 +3,38 @@
<script src="media/script/air-datepicker/i18n/datepicker.ja.js"></script>
<script type="text/javascript">
var start = new Date();
start.setHours(0);
start.setMinutes(0);
var options = {
language : '[(lang_code)]',
timepicker : true,
todayButton : new Date(),
keyboardNav : false,
startDate : start,
autoClose : true,
toggleSelected: false,
clearButton : true,
minutesStep : 5,
dateFormat : '[(datetime_format:strtolower)]',
onSelect : function (fd, d, picker) {
documentDirty = true;
},
navTitles: {
days: 'yyyy/mm'
}
};
jQuery('.DatePicker').datepicker(options);
jQuery('.DatePicker').each(function(i, elm){
var v=jQuery(elm).val();
if(v) {
jQuery(elm).data('datepicker').selectDate(new Date(v));
}
documentDirty = false;
jQuery(function(){
var start = new Date();
start.setHours(0);
start.setMinutes(0);
var options = {
language : '[(lang_code)]',
timepicker : true,
todayButton : new Date(),
keyboardNav : false,
startDate : start,
autoClose : true,
toggleSelected: false,
clearButton : true,
minutesStep : 5,
dateFormat : '[(datetime_format:strtolower)]',
onSelect : function (fd, d, picker) {
documentDirty = true;
},
navTitles: {
days: 'yyyy/mm'
}
};
jQuery('.DatePicker').datepicker(options);
jQuery('.DatePicker').each(function(i, elm){
var v=jQuery(elm).val();
if(v) {
jQuery(elm).data('datepicker').selectDate(new Date(v));
}
documentDirty = false;
});
});
</script>

0 comments on commit 5643c4b

Please sign in to comment.