diff --git a/message/user.php b/message/user.php index 33ec27eb2a4..bc6ce3b20f7 100644 --- a/message/user.php +++ b/message/user.php @@ -172,9 +172,9 @@ } } if (get_user_preferences('message_beepnewmessage', 0)) { - echo 'parent.messages.document.write("");'; + $playbeep = true; } - echo 'parent.messages.scroll(1,5000000);'; + echo 'parent.messages.scroll(1,5000000);\\n'; } // Update the info pane, but only if the data there is getting too old @@ -197,6 +197,11 @@ echo '-->'."\n"; echo ''."\n"; echo ''."\n"; + if (!empty($playbeep)) { + echo '
'."\n"; + echo ''; + echo ''."\n"; + } echo '