- onclick="javascript:location.href='@items.add_url@';">
+ | onclick="javascript:location.href='@items.day_url@';">
- onclick="javascript:location.href='@items.add_url@';">
+ | onclick="javascript:location.href='@items.day_url@';">
- @items.day_number@@items.day_number@
+
+ @items.day_number@
+
+
+ @items.day_number@
+
Index: openacs-4/packages/calendar/www/view-month-display.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/calendar/www/view-month-display.tcl,v
diff -u -r1.18 -r1.19
--- openacs-4/packages/calendar/www/view-month-display.tcl 8 Aug 2006 21:26:18 -0000 1.18
+++ openacs-4/packages/calendar/www/view-month-display.tcl 16 Aug 2006 17:52:14 -0000 1.19
@@ -38,7 +38,10 @@
if {[info exists portlet_mode_p] && $portlet_mode_p} {
set page_num_urlvar "&page_num=$page_num"
- set item_template "\${url_stub}cal-item-view?show_cal_nav=0&return_url=[ad_urlencode "../"]&action=edit&cal_item_id=\$item_id"
+ if {![info exists return_url]} {
+ set return_url [ad_urlencode "../"]
+ }
+ set item_template "\${url_stub}cal-item-view?show_cal_nav=0&return_url=${return_url}&action=edit&cal_item_id=\$item_id"
set prev_month_template "?view=month&date=\[ad_urlencode \$prev_month\]&page_num=$page_num"
set next_month_template "?view=month&date=\[ad_urlencode \$next_month\]&page_num=$page_num"
set url_stub_callback "calendar_portlet_display::get_url_stub"
Index: openacs-4/packages/calendar/www/view-one-day-display.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/calendar/www/view-one-day-display.tcl,v
diff -u -r1.33 -r1.34
--- openacs-4/packages/calendar/www/view-one-day-display.tcl 8 Aug 2006 21:26:18 -0000 1.33
+++ openacs-4/packages/calendar/www/view-one-day-display.tcl 16 Aug 2006 17:52:14 -0000 1.34
@@ -8,15 +8,18 @@
}
set current_date $date
+if {![info exists return_url]} {
+ set return_url [ad_urlencode "../"]
+}
if {[info exists portlet_mode_p] && $portlet_mode_p} {
- set item_template "\${url_stub}cal-item-view?show_cal_nav=0&return_url=[ad_urlencode "../"]&action=edit&cal_item_id=\$item_id"
+ set item_template "\${url_stub}cal-item-view?show_cal_nav=0&return_url=${return_url}&action=edit&cal_item_id=\$item_id"
set url_stub_callback "calendar_portlet_display::get_url_stub"
- set hour_template "calendar/cal-item-new?date=$current_date&start_time=\$day_current_hour"
+ set hour_template "calendar/cal-item-new?date=$current_date&start_time=\$day_current_hour&return_url=$return_url"
} else {
set item_template "cal-item-view?cal_item_id=\$item_id"
set url_stub_callback ""
- set hour_template {cal-item-new?date=$current_date&start_time=$day_current_hour}
+ set hour_template {cal-item-new?date=$current_date&start_time=$day_current_hour&return_url=$return_url}
}
if { ![info exists show_calendar_name_p] } {
Index: openacs-4/packages/calendar/www/view-week-display.adp
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/calendar/www/view-week-display.adp,v
diff -u -r1.11 -r1.12
--- openacs-4/packages/calendar/www/view-week-display.adp 8 Aug 2006 21:26:18 -0000 1.11
+++ openacs-4/packages/calendar/www/view-week-display.adp 16 Aug 2006 17:52:14 -0000 1.12
@@ -19,7 +19,7 @@
+ src="/resources/acs-subsite/add.gif" alt="#calendar.Add_Item#">
@items.start_date@
|
Index: openacs-4/packages/calendar/www/view-week-display.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/calendar/www/view-week-display.tcl,v
diff -u -r1.17 -r1.18
--- openacs-4/packages/calendar/www/view-week-display.tcl 17 May 2004 15:15:00 -0000 1.17
+++ openacs-4/packages/calendar/www/view-week-display.tcl 16 Aug 2006 17:52:14 -0000 1.18
@@ -8,7 +8,10 @@
}
if {[info exists portlet_mode_p] && $portlet_mode_p} {
- set item_template "\${url_stub}cal-item-view?show_cal_nav=0&return_url=[ad_urlencode "../"]&action=edit&cal_item_id=\$item_id"
+ if {![info exists return_url]} {
+ set return_url [ad_urlencode "../"]
+ }
+ set item_template "\${url_stub}cal-item-view?show_cal_nav=0&return_url=${return_url}&action=edit&cal_item_id=\$item_id"
set url_stub_callback "calendar_portlet_display::get_url_stub"
set page_num_formvar [export_form_vars page_num]
set page_num_urlvar "&page_num=$page_num"
@@ -105,7 +108,7 @@
"" \
"" \
"" \
- "${base_url}cal-item-new?date=${ansi_this_date}&start_time=&end_time=" \
+ "${base_url}cal-item-new?date=${ansi_this_date}&start_time=&end_time=&return_url=$return_url" \
"?view=day&date=$ansi_this_date&page_num_urlvar"
}
@@ -138,7 +141,7 @@
$end_time \
$no_time_p \
"?view=day&date=$ansi_start_date&page_num_urlvar" \
- "${base_url}cal-item-new?date=${ansi_this_date}&start_time=&end_time="
+ "${base_url}cal-item-new?date=${ansi_this_date}&start_time=&end_time=&return_url=$return_url"
set current_weekday $day_of_week
}
@@ -157,7 +160,7 @@
"" \
"" \
"" \
- "${base_url}cal-item-new?date=${ansi_this_date}&start_time=&end_time=" \
+ "${base_url}cal-item-new?date=${ansi_this_date}&start_time=&end_time=&return_url=$return_url" \
"?view=day&date=$ansi_this_date&page_num_urlvar"
}
}
Index: openacs-4/packages/calendar/www/view.adp
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/calendar/www/view.adp,v
diff -u -r1.28 -r1.29
--- openacs-4/packages/calendar/www/view.adp 26 Feb 2004 12:43:23 -0000 1.28
+++ openacs-4/packages/calendar/www/view.adp 16 Aug 2006 17:52:14 -0000 1.29
@@ -12,7 +12,7 @@
-
+
#calendar.Add_Item#
@@ -32,25 +32,25 @@
-
-
-
-
Index: openacs-4/packages/calendar/www/view.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/calendar/www/view.tcl,v
diff -u -r1.22 -r1.23
--- openacs-4/packages/calendar/www/view.tcl 29 Jun 2004 10:17:52 -0000 1.22
+++ openacs-4/packages/calendar/www/view.tcl 16 Aug 2006 17:52:14 -0000 1.23
@@ -25,6 +25,9 @@
set package_id [ad_conn package_id]
set user_id [ad_conn user_id]
+# HAM : try to create a return url back here after creating a new item
+set return_url [ad_urlencode [ad_return_url]]
+
set admin_p [permission::permission_p -object_id $package_id -privilege calendar_admin]
set show_calendar_name_p [parameter::get -parameter Show_Calendar_Name_p -default 1]
Index: openacs-4/packages/calendar/www/resources/calendar.css
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/calendar/www/resources/calendar.css,v
diff -u -r1.10 -r1.11
--- openacs-4/packages/calendar/www/resources/calendar.css 8 Aug 2006 21:26:18 -0000 1.10
+++ openacs-4/packages/calendar/www/resources/calendar.css 16 Aug 2006 17:52:15 -0000 1.11
@@ -28,6 +28,7 @@
border-width: 0px 0px 1px 0px;
border-style: solid;
border-color: #dfe2e5;
+ vertical-align: top;
}
.cal-week {
| |