Commit ea274153 authored by Pietro Albini's avatar Pietro Albini

Show the alert also for #ubuntu-it

parent 5174c2c8
...@@ -88,8 +88,8 @@ ...@@ -88,8 +88,8 @@
<div id="chat" style="display: none;"> <div id="chat" style="display: none;">
<div id="content-top"></div> <div id="content-top"></div>
<div class="container"> <div class="container">
<div class="comunita-notice" id="chat-notice" style="display: none; padding-top: 5px"> <div class="comunita-notice" id="nicksrv-notice" style="display: none; padding-top: 5px">
<b>Attenzione!</b> Per parlare nel canale #ubuntu-it-chat è necessario <b>Attenzione!</b> Per parlare nel canale è necessario
<a href="https://freenode.net/kb/answer/registration"> <a href="https://freenode.net/kb/answer/registration">
registrare un nickname</a>. registrare un nickname</a>.
</div> </div>
...@@ -136,8 +136,8 @@ ...@@ -136,8 +136,8 @@
// force reload the iframe, which was denied by security limits // force reload the iframe, which was denied by security limits
function join(channel) { function join(channel) {
if (channel === "#ubuntu-it-chat") { if (channel === "#ubuntu-it-chat" || channel == "#ubuntu-it") {
$('#chat-notice').show(); $('#nicksrv-notice').show();
} }
document.getElementById('chat_frame').contentWindow.location.reload(true); document.getElementById('chat_frame').contentWindow.location.reload(true);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment