Browse files

MDL-32665 mod_chat: disabled popup notifications in the chat windows

  • Loading branch information...
1 parent 9a7c3d5 commit f7b9d6112123ab157f2478a60fedbfe825aa4e99 @andyjdavis andyjdavis committed Jul 17, 2012
Showing with 2 additions and 0 deletions.
  1. +1 −0 mod/chat/gui_ajax/index.php
  2. +1 −0 mod/chat/gui_basic/index.php
View
1 mod/chat/gui_ajax/index.php
@@ -11,6 +11,7 @@
$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);
View
1 mod/chat/gui_basic/index.php
@@ -44,6 +44,7 @@
require_login($course->id, 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

0 comments on commit f7b9d61

Please sign in to comment.