Skip to content

Commit

Permalink
MDL-35264 mod_chat Changing the input frame of chat daemon method to …
Browse files Browse the repository at this point in the history
…a embedded page layout
  • Loading branch information
David Monllao committed Sep 7, 2012
1 parent 555112a commit a29aca5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mod/chat/gui_sockets/chatinput.php
Expand Up @@ -17,6 +17,7 @@
$USER = $DB->get_record('user', array('id'=>$chatuser->userid)); $USER = $DB->get_record('user', array('id'=>$chatuser->userid));


//Setup course, lang and theme //Setup course, lang and theme
$PAGE->set_pagelayout('embedded');
$PAGE->set_course($DB->get_record('course', array('id' => $chatuser->course))); $PAGE->set_course($DB->get_record('course', array('id' => $chatuser->course)));
$PAGE->requires->js('/mod/chat/gui_sockets/chat_gui_sockets.js', true); $PAGE->requires->js('/mod/chat/gui_sockets/chat_gui_sockets.js', true);
$PAGE->requires->js_function_call('setfocus'); $PAGE->requires->js_function_call('setfocus');
Expand Down

0 comments on commit a29aca5

Please sign in to comment.