Michael Hall has proposed merging 
lp:~mhall119/loco-directory/fix-team-details-webchat-showing into 
lp:loco-directory.

Requested reviews:
  loco-directory-dev (loco-directory-dev)

For more details, see:
https://code.launchpad.net/~mhall119/loco-directory/fix-team-details-webchat-showing/+merge/47489

This will hide the webchat until the user clicks the "IRC" icon, in which case 
the webchat will be shown and the browser will scroll down to it.
-- 
https://code.launchpad.net/~mhall119/loco-directory/fix-team-details-webchat-showing/+merge/47489
Your team loco-directory-dev is requested to review the proposed merge of 
lp:~mhall119/loco-directory/fix-team-details-webchat-showing into 
lp:loco-directory.
=== modified file 'loco_directory/templates/teams/team_detail.html'
--- loco_directory/templates/teams/team_detail.html	2011-01-25 01:21:49 +0000
+++ loco_directory/templates/teams/team_detail.html	2011-01-26 00:46:24 +0000
@@ -184,7 +184,7 @@
                     <a href="{{ team.wiki_url }}"><img class="resource" src="/media/images/team/wiki.png" alt="{% trans "Team Wiki" %}" title="{% trans "Team Wiki" %}" /></a>
                 {% endif %}
                 {% if team.irc_chan %}
-                    <img class="resource" style="cursor:pointer;" src="/media/images/team/irc.png" onclick="$('#webchat').show('slow');" alt="{% trans "IRC Channel" %} ({{ team.irc_chan }})" title="{% trans "IRC Channel" %} ({{ team.irc_chan }})" />
+                    <img class="resource" style="cursor:pointer;" src="/media/images/team/irc.png" onclick="$('#webchat').show(0, function() {$(window).scrollTop($('#webchat').position().top);} );" alt="{% trans "IRC Channel" %} ({{ team.irc_chan }})" title="{% trans "IRC Channel" %} ({{ team.irc_chan }})" />
                 {% endif %}
                 {% if team.ml_url %}
                     <a href="{{ team.ml_url }}"><img class="resource" src="/media/images/team/list.png" alt="{% trans "Team Mailing List" %}" title="{% trans "Team Mailing List" %}" /></a>
@@ -246,7 +246,7 @@
 {% endblock %}
 {% block general %}
 {% if team.irc_chan %}
-    <div id="webchat" style="display: block; width: 900px; margin: 0 auto;">
+    <div id="webchat" style="display: none; width: 900px; margin: 0 auto;">
         {% if user.is_authenticated %}
             <iframe src="http://webchat.freenode.net/?channels={{ team.irc_chan }}&prompt=1&uio=OT10cnVlJjEwPXRydWUmMTE9MjM218&nick={{ user.username }}" width="900" height="400"></iframe>
         {% else %}

_______________________________________________
Mailing list: https://launchpad.net/~loco-directory-dev
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~loco-directory-dev
More help   : https://help.launchpad.net/ListHelp

Reply via email to