[Phpfreechat-svn] SF.net SVN: phpfreechat: [567] trunk/themes/default/templates
Status: Beta
Brought to you by:
kerphi
From: <ke...@us...> - 2006-06-13 20:15:40
|
Revision: 567 Author: kerphi Date: 2006-06-13 13:15:32 -0700 (Tue, 13 Jun 2006) ViewCVS: http://svn.sourceforge.net/phpfreechat/?rev=567&view=rev Log Message: ----------- the oldmsg css class was broken Modified Paths: -------------- trunk/themes/default/templates/pfcclient.js.tpl.php trunk/themes/default/templates/pfcgui.js.tpl.php trunk/themes/default/templates/style.css.tpl.php Modified: trunk/themes/default/templates/pfcclient.js.tpl.php =================================================================== --- trunk/themes/default/templates/pfcclient.js.tpl.php 2006-06-13 09:34:05 UTC (rev 566) +++ trunk/themes/default/templates/pfcclient.js.tpl.php 2006-06-13 20:15:32 UTC (rev 567) @@ -657,7 +657,7 @@ { var msg_html = $H(); - // alert(cmds.inspect()); + //alert(cmds.inspect()); // var html = ''; for(var mid = 0; mid < cmds.length ; mid++) @@ -669,16 +669,16 @@ var recipientid = cmds[mid][4]; var cmd = cmds[mid][5]; var param = cmds[mid][6]; - //var fromtoday = cmds[mid][6]; - //var oldmsg = cmds[mid][7]; + var fromtoday = cmds[mid][7]; + var oldmsg = cmds[mid][8]; // format and post message var line = ''; line += '<div id="<?php echo $prefix; ?>msg'+ id +'" class="<?php echo $prefix; ?>'+ cmd +' <?php echo $prefix; ?>message'; - // if (oldmsg == 1) line += ' <?php echo $prefix; ?>oldmsg'; + if (oldmsg == 1) line += ' <?php echo $prefix; ?>oldmsg'; line += '">'; line += '<span class="<?php echo $prefix; ?>date'; - // if (fromtoday == 1) line += ' <?php echo $prefix; ?>invisible'; + if (fromtoday == 1) line += ' <?php echo $prefix; ?>invisible'; line += '">'+ date +'</span> '; line += '<span class="<?php echo $prefix; ?>heure">'+ time +'</span> '; if (cmd == 'send') Modified: trunk/themes/default/templates/pfcgui.js.tpl.php =================================================================== --- trunk/themes/default/templates/pfcgui.js.tpl.php 2006-06-13 09:34:05 UTC (rev 566) +++ trunk/themes/default/templates/pfcgui.js.tpl.php 2006-06-13 20:15:32 UTC (rev 567) @@ -92,6 +92,7 @@ cc.setAttribute('id', '<?php echo $prefix; ?>chat_'+tabid); Element.addClassName(cc, '<?php echo $prefix; ?>chat'); cc.style.display = "block"; // needed by IE6 to show the online div at startup (first loaded page) + cc.style.marginLeft = "5px"; this.chatcontent[tabid] = cc; return cc; Modified: trunk/themes/default/templates/style.css.tpl.php =================================================================== --- trunk/themes/default/templates/style.css.tpl.php 2006-06-13 09:34:05 UTC (rev 566) +++ trunk/themes/default/templates/style.css.tpl.php 2006-06-13 20:15:32 UTC (rev 567) @@ -87,10 +87,8 @@ div.<?php echo $prefix; ?>chat { z-index: 100; position: absolute; - top: 0px; - /* left and width are adjusted to leave a small margin on the left of the chat area - * padding css rule doesn't work because the chat zone is generated by JS function */ - left: 0.5%; + top: 0; + left: 0; width: 79.5%; height: 100%; overflow: auto; @@ -141,7 +139,7 @@ } div.<?php echo $prefix; ?>oldmsg { - background-color: #EEE; + color: #AAA; } span.<?php echo $prefix; ?>heure, span.<?php echo $prefix; ?>date { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |