From dec465b3e9e2c930143b050dba5b1b0fa5832ba6 Mon Sep 17 00:00:00 2001 From: Andrew Davis Date: Tue, 17 Jul 2012 10:15:14 +0800 Subject: [PATCH] MDL-32665 mod_chat: disabled popup notifications in the chat windows --- mod/chat/gui_ajax/index.php | 1 + mod/chat/gui_basic/index.php | 1 + 2 files changed, 2 insertions(+) diff --git a/mod/chat/gui_ajax/index.php b/mod/chat/gui_ajax/index.php index 6955693a6c1..db7f3401c05 100644 --- a/mod/chat/gui_ajax/index.php +++ b/mod/chat/gui_ajax/index.php @@ -11,6 +11,7 @@ if ($groupid !== 0) { $url->param('groupid', $groupid); } $PAGE->set_url($url); +$PAGE->set_popup_notification_allowed(false); // No popup notifications in the chat window $chat = $DB->get_record('chat', array('id'=>$id), '*', MUST_EXIST); $course = $DB->get_record('course', array('id'=>$chat->course), '*', MUST_EXIST); diff --git a/mod/chat/gui_basic/index.php b/mod/chat/gui_basic/index.php index 82e02cba386..aa79bd540c6 100644 --- a/mod/chat/gui_basic/index.php +++ b/mod/chat/gui_basic/index.php @@ -44,6 +44,7 @@ $context = get_context_instance(CONTEXT_MODULE, $cm->id); require_login($course, false, $cm); require_capability('mod/chat:chat', $context); $PAGE->set_pagelayout('base'); +$PAGE->set_popup_notification_allowed(false); // No popup notifications in the chat window /// Check to see if groups are being used here if ($groupmode = groups_get_activity_groupmode($cm)) { // Groups are being used