Commit 3eaa3504 authored by Gabriel Monnerat's avatar Gabriel Monnerat

refactor code to pass the portal type in request

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@42884 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent f5fef434
......@@ -1825,11 +1825,13 @@
return false;\n
}\n
var zone = new Date().getTimezoneOffset() / 60 * -1;\n
var portalType = $("select[name=\'portal_type\']").val();\n
var param = [{ "name": "CalendarTitle", value: what },\n
{ "name": "CalendarStartTime", value: datestart },\n
{ "name": "CalendarEndTime", value: dateend },\n
{ "name": "IsAllDayEvent", value: allday },\n
{ "name": "timezone", value: zone}];\n
{ "name": "timezone", value: zone},\n
{ "name": "portal_type", value: portalType}];\n
\n
if (option.extParam) {\n
for (var pi = 0; pi < option.extParam.length; pi++) {\n
......
12
\ No newline at end of file
13
\ 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