]> git.mjollnir.org Git - moodle.git/commitdiff
"MDL-8224, use embedded layout in gui_header_js UI, add a css to gui_basic UI"
authordongsheng <dongsheng>
Sat, 5 Sep 2009 18:46:02 +0000 (18:46 +0000)
committerdongsheng <dongsheng>
Sat, 5 Sep 2009 18:46:02 +0000 (18:46 +0000)
mod/chat/gui_basic/index.php
mod/chat/gui_header_js/chatinput.php

index 00957d0331d67f583b23c3235825c243a482c717..d8be302fcb239a53ae3e7690bc80995f71746a34 100644 (file)
@@ -26,6 +26,7 @@
     require_login($course->id, false, $cm);
     require_capability('mod/chat:chat',$context);
     $PAGE->set_generaltype('form');
+    $PAGE->requires->css('mod/chat/chat.css');
 
 /// Check to see if groups are being used here
      if ($groupmode = groups_get_activity_groupmode($cm)) {   // Groups are being used
index 451732157253c492cd16c0bf72c91fd411a0077b..33e56d57517bbfb90c9be7c9a67333e51e493d9d 100644 (file)
@@ -24,7 +24,6 @@
     }
     
     $context = get_context_instance(CONTEXT_MODULE, $cm->id);
-    
 
     //Get the user theme
     $USER = $DB->get_record('user', array('id'=>$chatuser->userid));
@@ -32,6 +31,7 @@
     //Setup course, lang and theme
     $PAGE->set_course($course);
     $PAGE->requires->js('mod/chat/gui_header_js/chat_gui_header.js')->in_head();
+    $PAGE->set_generaltype('embedded');
 
     print_header('', '', '', 'input_chat_message', '', false);