Changeset 588 for trunk/calendar
- Timestamp:
- 01/12/09 11:28:22 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/calendar/inc/class.bocalendar.inc.php
r583 r588 758 758 function update($params='') 759 759 { 760 761 if($params['from_mobile']) { 762 $ui_return = "mobile.ui_mobilecalendar.edit"; 763 $ui_index = "mobile.ui_mobilecalendar.index"; 764 $ui_overlap = "mobile.ui_mobilecalendar.overlap"; 765 } 766 else { 767 $ui_return = "calendar.uicalendar.edit"; 768 $ui_index = "calendar.uicalendar.index"; 769 $ui_overlap = "calendar.uicalendar.overlap"; 770 } 771 760 772 if(!is_object($GLOBALS['phpgw']->datetime)) 761 773 { … … 769 781 $l_end = (@isset($params['end']) && $params['end']?$params['end']:$_POST['end']); 770 782 $l_recur_enddate = (@isset($params['recur_enddate']) && $params['recur_enddate']?$params['recur_enddate']:$_POST['recur_enddate']); 783 771 784 772 785 $send_to_ui = True; … … 837 850 if($datetime_check) 838 851 { 839 ExecMethod( 'calendar.uicalendar.edit',852 ExecMethod($ui_return, 840 853 Array( 841 854 'cd' => $datetime_check, … … 843 856 ) 844 857 ); 845 $GLOBALS['phpgw']->common->phpgw_exit(True); 858 if(!$params['from_mobile']) 859 $GLOBALS['phpgw']->common->phpgw_exit(True); 860 else 861 return; 846 862 } 847 863 $overlapping_events = False; … … 860 876 return array(($l_cal['id']?1:2) => 'permission denied'); 861 877 } 862 ExecMethod('calendar.uicalendar.index'); 863 $GLOBALS['phpgw']->common->phpgw_exit(); 878 ExecMethod($ui_index); 879 if(!$params['from_mobile']) 880 $GLOBALS['phpgw']->common->phpgw_exit(); 881 else 882 return; 864 883 } 865 884 … … 1141 1160 return array($datetime_check => 'invalid input data'); 1142 1161 } 1143 ExecMethod( 'calendar.uicalendar.edit',1162 ExecMethod($ui_return, 1144 1163 Array( 1145 1164 'cd' => $datetime_check, … … 1147 1166 ) 1148 1167 ); 1149 $GLOBALS['phpgw']->common->phpgw_exit(True); 1168 if(!$params['from_mobile']) 1169 $GLOBALS['phpgw']->common->phpgw_exit(True); 1170 else 1171 return; 1150 1172 } 1151 1173 … … 1176 1198 unset($GLOBALS['phpgw_info']['flags']['noheader']); 1177 1199 unset($GLOBALS['phpgw_info']['flags']['nonavbar']); 1178 ExecMethod( 'calendar.uicalendar.overlap',1200 ExecMethod($ui_overlap, 1179 1201 Array( 1180 1202 'o_events' => $overlapping_events, … … 1182 1204 ) 1183 1205 ); 1184 $GLOBALS['phpgw']->common->phpgw_exit(True); 1206 if(!$params['from_mobile']) 1207 $GLOBALS['phpgw']->common->phpgw_exit(True); 1208 else 1209 return; 1185 1210 } 1186 1211 else … … 1229 1254 $GLOBALS['phpgw']->common->phpgw_exit(); 1230 1255 } 1231 Execmethod( 'calendar.uicalendar.index');1256 Execmethod($ui_index); 1232 1257 } 1233 1258 else
Note: See TracChangeset
for help on using the changeset viewer.