]> git.mjollnir.org Git - moodle.git/commitdiff
CHAT_MOD/MDL-14651, disable ajax UI by default" view.php
authordongsheng <dongsheng>
Wed, 19 Nov 2008 06:32:49 +0000 (06:32 +0000)
committerdongsheng <dongsheng>
Wed, 19 Nov 2008 06:32:49 +0000 (06:32 +0000)
mod/chat/view.php

index deb8449e3120bf86e96629e056e8ed47a71557ed..1fee2a3a45db68eaba3fef010ea8fb2deda33ad7 100644 (file)
                     $chattarget = "/mod/chat/gui_$CFG->chat_method/index.php?id=$chat->id$groupparam";
                 }
 
+                echo '<p>';
+                link_to_popup_window ($chattarget,
+                        "chat$course->id$chat->id$groupparam", "$strenterchat", 500, 700, get_string('modulename', 'chat'));
+                echo '</p>';
+
                 if ($CFG->chat_enable_ajax) {
                     echo '<p>';
-                    link_to_popup_window ($chattarget,
-                            "chat$course->id$chat->id$groupparam", "$strenterchat", 500, 700, get_string('modulename', 'chat'));
+                    link_to_popup_window ("/mod/chat/gui_ajax/index.php?id=$chat->id$groupparam",
+                        "chat$course->id$chat->id$groupparam", get_string('ajax_gui', 'message'), 500, 700, get_string('modulename', 'chat'));
                     echo '</p>';
                 }
 
-                echo '<p>';
-                link_to_popup_window ("/mod/chat/gui_ajax/index.php?id=$chat->id$groupparam",
-                    "chat$course->id$chat->id$groupparam", get_string('ajax_gui', 'message'), 500, 700, get_string('modulename', 'chat'));
-                echo '</p>';
                 // if user is using screen reader, then there is no need to display this link again
                 if ($CFG->chat_method == 'header_js' && empty($USER->screenreader)) {
                     // show frame/js-less alternative