From: dongsheng Date: Wed, 19 Nov 2008 06:32:49 +0000 (+0000) Subject: CHAT_MOD/MDL-14651, disable ajax UI by default" view.php X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=3698966986b4d9e0fc4c98959af909828bd0fc36;p=moodle.git CHAT_MOD/MDL-14651, disable ajax UI by default" view.php --- diff --git a/mod/chat/view.php b/mod/chat/view.php index deb8449e31..1fee2a3a45 100644 --- a/mod/chat/view.php +++ b/mod/chat/view.php @@ -142,17 +142,18 @@ $chattarget = "/mod/chat/gui_$CFG->chat_method/index.php?id=$chat->id$groupparam"; } + echo '

'; + link_to_popup_window ($chattarget, + "chat$course->id$chat->id$groupparam", "$strenterchat", 500, 700, get_string('modulename', 'chat')); + echo '

'; + if ($CFG->chat_enable_ajax) { echo '

'; - 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 '

'; } - echo '

'; - 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 '

'; // 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