diff --git a/calendar/inc/class.calendar_ui.inc.php b/calendar/inc/class.calendar_ui.inc.php index ce67665d56..9559ef04a8 100644 --- a/calendar/inc/class.calendar_ui.inc.php +++ b/calendar/inc/class.calendar_ui.inc.php @@ -514,16 +514,14 @@ class calendar_ui if ($Link_confirm_abort && $Link_confirm_text) { $returnvalue = 'javascript:var check=confirm(\''.$Link_confirm_text.'\');'; - $returnvalue .=' if (check==true) {'; + $returnvalue .=' if (check) '; // open confirm =0kay $returnvalue .= 'egw_openWindowCentered2('.($link == 'this.href' ? $link : "'".$link."'").','. - ($target == 'this.target' ? $target : "'".$target."'").",$width,$height,'yes')"; - $returnvalue .= '}'; + ($target == 'this.target' ? $target : "'".$target."'").",$width,$height,'yes');"; //open confirm =Abort - $returnvalue .=' else {'; + $returnvalue .=' else '; $returnvalue .= 'egw_openWindowCentered2('.($Link_confirm_abort == 'this.href' ? $Link_confirm_abort : "'".$Link_confirm_abort."'").','. - ($target == 'this.target' ? $target : "'".$target."'").",$width,$height,'yes')"; - $returnvalue .= '}'; + ($target == 'this.target' ? $target : "'".$target."'").",$width,$height,'yes');"; return $returnvalue; } @@ -725,7 +723,7 @@ class calendar_ui if($config['calendar_delete_history'] && $GLOBALS['egw_info']['user']['apps']['admin']) { $options .= '