diff --git a/lib/front/front.class.php b/lib/front/front.class.php index 0223657db2..9dd44200be 100644 --- a/lib/front/front.class.php +++ b/lib/front/front.class.php @@ -444,6 +444,7 @@ EOT; public static function backButton($misc = '') { global $lang; + if(isonlybody()) return false; return ""; } @@ -474,7 +475,9 @@ EOT; */ public static function linkButton($label = '', $link = '', $target = 'self', $misc = '') { - global $config; + global $config, $lang; + + if(isonlybody() and $lang->goback == $label) return false; /* if page has onlybody param then add this param in all link. the param hide header and footer. */ if(strpos($link, 'onlybody=') === false and isonlybody()) @@ -737,7 +740,8 @@ EOT; static public function closeColorbox($window = 'self') { $js = self::start(); - $js .= "$window.$.colorbox.close()"; + $js .= "if($window.location.href == self.location.href){ $window.window.close();}"; + $js .= "else{ $window.$.cookie('selfClose', 1);$window.$.colorbox.close();}"; $js .= self::end(); return $js; } diff --git a/module/bug/view/activate.html.php b/module/bug/view/activate.html.php index 23bbaa1a2a..30585ec00b 100644 --- a/module/bug/view/activate.html.php +++ b/module/bug/view/activate.html.php @@ -32,11 +32,7 @@
| - - - | +goback, $this->session->bugList);?> |