From 3eaa3504dfa446301bb4d5d1c06b397aeca4e2c1 Mon Sep 17 00:00:00 2001 From: Gabriel Monnerat <gabriel@tiolive.com> Date: Tue, 1 Feb 2011 09:56:56 +0000 Subject: [PATCH] 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 --- .../jquery/plugin/wdcalendar/jquery.calendar.js.xml | 4 +++- bt5/erp5_jquery_plugin_wdcalendar/bt/revision | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/bt5/erp5_jquery_plugin_wdcalendar/PathTemplateItem/portal_skins/erp5_jquery/jquery/plugin/wdcalendar/jquery.calendar.js.xml b/bt5/erp5_jquery_plugin_wdcalendar/PathTemplateItem/portal_skins/erp5_jquery/jquery/plugin/wdcalendar/jquery.calendar.js.xml index bf80586737..bcdb3d7ec6 100644 --- a/bt5/erp5_jquery_plugin_wdcalendar/PathTemplateItem/portal_skins/erp5_jquery/jquery/plugin/wdcalendar/jquery.calendar.js.xml +++ b/bt5/erp5_jquery_plugin_wdcalendar/PathTemplateItem/portal_skins/erp5_jquery/jquery/plugin/wdcalendar/jquery.calendar.js.xml @@ -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 diff --git a/bt5/erp5_jquery_plugin_wdcalendar/bt/revision b/bt5/erp5_jquery_plugin_wdcalendar/bt/revision index 3cacc0b93c..ca7bf83ac5 100644 --- a/bt5/erp5_jquery_plugin_wdcalendar/bt/revision +++ b/bt5/erp5_jquery_plugin_wdcalendar/bt/revision @@ -1 +1 @@ -12 \ No newline at end of file +13 \ No newline at end of file -- 2.30.9