MDL-21403 removing some more asaps

This commit is contained in:
Petr Skoda
2010-01-26 09:44:55 +00:00
parent 6c772bcbf2
commit cd1b2ceecd
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -69,8 +69,8 @@ $PAGE->set_url($url);
/// Popup a window if required and quit (usually from external links).
if ($popup) {
$PAGE->set_pagelayout('popup');
$OUTPUT->header();
echo $PAGE->requires->js_function_call('openpopup', Array('/message/index.php', 'message', 'menubar=0,location=0,scrollbars,status,resizable,width=400,height=500', 0))->asap();
echo $OUTPUT->header();
echo html_writer::script(js_writer::function_call('openpopup', Array('/message/index.php', 'message', 'menubar=0,location=0,scrollbars,status,resizable,width=400,height=500', 0)));
redirect("$CFG->wwwroot/", '', 0);
exit;
}
+1 -1
View File
@@ -83,7 +83,7 @@ $PAGE->requires->data_for_js('chatmessages', Array('msgcount'=>count($jsmessages
echo $OUTPUT->header();
if (!empty($playbeep)) {
echo '<embed src="bell.wav" autostart="true" hidden="true" name="bell" />';
echo $PAGE->requires->js_function_call('parent.send.focus')->asap();
echo $PAGE->requires->js_function_call('parent.send.focus');
}
// Javascript for Mozilla to cope with the redirect bug from editor being on in this page