Commit 5174c2c8 authored by Pietro Albini's avatar Pietro Albini

Add an alert about nickserv on #ubuntu-it-chat

parent 4e7ec79d
......@@ -88,6 +88,11 @@
<div id="chat" style="display: none;">
<div id="content-top"></div>
<div class="container">
<div class="comunita-notice" id="chat-notice" style="display: none; padding-top: 5px">
<b>Attenzione!</b> Per parlare nel canale #ubuntu-it-chat è necessario
<a href="https://freenode.net/kb/answer/registration">
registrare un nickname</a>.
</div>
<div style="padding: 3px;">
<iframe id="chat_frame" src="javascript:void(false)"></iframe>
</div>
......@@ -131,6 +136,10 @@
// force reload the iframe, which was denied by security limits
function join(channel) {
if (channel === "#ubuntu-it-chat") {
$('#chat-notice').show();
}
document.getElementById('chat_frame').contentWindow.location.reload(true);
$( '#chat_frame' ).attr('src', "iframe_container.html"+channel);
$('#chat').show();
......
......@@ -121,7 +121,7 @@ h3 a {
.comunita-notice {
display: block;
margin: 10px 0;
padding: 10px 0;
text-align: center;
}
......
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