Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit dec465b3e9e2c930143b050dba5b1b0fa5832ba6 1 parent 3b52187
@andyjdavis andyjdavis authored
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, 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
Please sign in to comment.
Something went wrong with that request. Please try again.