[Erp5-report] r42884 gabriel - in /erp5/trunk/bt5/erp5_jquery_plugin_wdcalendar: PathTempla...

nobody at svn.erp5.org nobody at svn.erp5.org
Tue Feb 1 10:56:56 CET 2011


Author: gabriel
Date: Tue Feb  1 10:56:56 2011
New Revision: 42884

URL: http://svn.erp5.org?rev=42884&view=rev
Log:
refactor code to pass the portal type in request

Modified:
    erp5/trunk/bt5/erp5_jquery_plugin_wdcalendar/PathTemplateItem/portal_skins/erp5_jquery/jquery/plugin/wdcalendar/jquery.calendar.js.xml
    erp5/trunk/bt5/erp5_jquery_plugin_wdcalendar/bt/revision

Modified: erp5/trunk/bt5/erp5_jquery_plugin_wdcalendar/PathTemplateItem/portal_skins/erp5_jquery/jquery/plugin/wdcalendar/jquery.calendar.js.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_jquery_plugin_wdcalendar/PathTemplateItem/portal_skins/erp5_jquery/jquery/plugin/wdcalendar/jquery.calendar.js.xml?rev=42884&r1=42883&r2=42884&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_jquery_plugin_wdcalendar/PathTemplateItem/portal_skins/erp5_jquery/jquery/plugin/wdcalendar/jquery.calendar.js.xml [utf8] (original)
+++ erp5/trunk/bt5/erp5_jquery_plugin_wdcalendar/PathTemplateItem/portal_skins/erp5_jquery/jquery/plugin/wdcalendar/jquery.calendar.js.xml [utf8] Tue Feb  1 10:56:56 2011
@@ -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

Modified: erp5/trunk/bt5/erp5_jquery_plugin_wdcalendar/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_jquery_plugin_wdcalendar/bt/revision?rev=42884&r1=42883&r2=42884&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_jquery_plugin_wdcalendar/bt/revision [utf8] (original)
+++ erp5/trunk/bt5/erp5_jquery_plugin_wdcalendar/bt/revision [utf8] Tue Feb  1 10:56:56 2011
@@ -1 +1 @@
-12
\ No newline at end of file
+13
\ No newline at end of file



More information about the Erp5-report mailing list