Commit 12ace595 authored by Gabriel Monnerat's avatar Gabriel Monnerat

add code to select the date in the calendar. The events are displayed according to this data.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@42713 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ee2ee481
......@@ -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>
......
191
\ No newline at end of file
192
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment