diff --git a/notifications/inc/class.ajaxnotifications.inc.php b/notifications/inc/class.ajaxnotifications.inc.php index 6864105b61..f78ed059cd 100644 --- a/notifications/inc/class.ajaxnotifications.inc.php +++ b/notifications/inc/class.ajaxnotifications.inc.php @@ -109,7 +109,7 @@ class ajaxnotifications { * * @return xajax response */ - public function get_popup_notifications() { + public function get_egwpopup_notifications() { $session_id = $GLOBALS['egw_info']['user']['sessionid']; $message = ''; $rs = $this->db->select(self::_notification_table, @@ -133,11 +133,11 @@ class ajaxnotifications { break; case 'high': $this->response->addAlert(lang('eGroupWare has notifications for you')); - $this->response->addScript('notificationwindow_display();'); + $this->response->addScript('egwpopup_display();'); break; case 'medium': default: - $this->response->addScript('notificationwindow_display();'); + $this->response->addScript('egwpopup_display();'); break; } } diff --git a/notifications/inc/class.notifications_popup.inc.php b/notifications/inc/class.notifications_popup.inc.php index 67918ea12f..0b621a1fcd 100644 --- a/notifications/inc/class.notifications_popup.inc.php +++ b/notifications/inc/class.notifications_popup.inc.php @@ -116,7 +116,6 @@ class notifications_popup implements notifications_iface { $message = $this->render_infos($_subject) .html::hr() .$_messages['html'] - .html::hr() .$this->render_links($_links); $this->save( $message, $user_sessions ); @@ -174,7 +173,7 @@ class notifications_popup implements notifications_iface { } if(count($rendered_links) > 0) { - return html::bold(lang('Linked entries:')).$newline.implode($newline,$rendered_links); + return html::hr().html::bold(lang('Linked entries:')).$newline.implode($newline,$rendered_links); } } diff --git a/notifications/inc/hook_after_navbar.inc.php b/notifications/inc/hook_after_navbar.inc.php index 1d749d94ee..68a9b47619 100644 --- a/notifications/inc/hook_after_navbar.inc.php +++ b/notifications/inc/hook_after_navbar.inc.php @@ -16,15 +16,13 @@ $notification_config = config::read('notifications'); if ($notification_config['popup_enable']) { $GLOBALS['egw']->translation->add_app('notifications'); echo ''; - echo ''; + echo ''; echo ' -