diff --git a/bt5/erp5_web_ung_theme/SkinTemplateItem/portal_skins/erp5_web_ung_theme/ung_js/ung_calendar.js.xml b/bt5/erp5_web_ung_theme/SkinTemplateItem/portal_skins/erp5_web_ung_theme/ung_js/ung_calendar.js.xml index 70d355b83df85f1d80554dbe9281a397b7975f1a..791b1654f6e974d6651131e42b21a3570ccf3710 100644 --- a/bt5/erp5_web_ung_theme/SkinTemplateItem/portal_skins/erp5_web_ung_theme/ung_js/ung_calendar.js.xml +++ b/bt5/erp5_web_ung_theme/SkinTemplateItem/portal_skins/erp5_web_ung_theme/ung_js/ung_calendar.js.xml @@ -214,8 +214,18 @@ $(document).ready(function() { \n }\n },\n });\n - $( "#datepicker" ).datepicker();\n -\n + $( "#datepicker" ).datepicker({\n + onSelect: function(dateText, inst){\n + var dateList = dateText.split("/");\n + var month = dateList[0] - 1;\n + var day = dateList[1];\n + var year = dateList[2];\n + var p = $("#gridcontainer").gotoDate(new Date(year, month, day)).BcalGetOp();\n + if (p && p.datestrshow) {\n + $("#txtdatetimeshow").text(p.datestrshow);\n + }\n + }\n + });\n }); ]]></string> </value> diff --git a/bt5/erp5_web_ung_theme/bt/revision b/bt5/erp5_web_ung_theme/bt/revision index 946b551d71c2c264c949222738cfc5f55c684175..681cf043cbf0cf47969386e083423ae7432949c9 100644 --- a/bt5/erp5_web_ung_theme/bt/revision +++ b/bt5/erp5_web_ung_theme/bt/revision @@ -1 +1 @@ -191 \ No newline at end of file +192 \ No newline at end of file