Revision: 634
Author: kerphi
Date: 2006-06-28 12:59:12 -0700 (Wed, 28 Jun 2006)
ViewCVS: http://svn.sourceforge.net/phpfreechat/?rev=634&view=rev
Log Message:
-----------
Bug fix: the displayMsg javascript function was broken
Modified Paths:
--------------
trunk/lib/javascript/myprototype.js
trunk/themes/default/templates/pfcclient.js.tpl.php
Modified: trunk/lib/javascript/myprototype.js
===================================================================
--- trunk/lib/javascript/myprototype.js 2006-06-28 14:27:42 UTC (rev 633)
+++ trunk/lib/javascript/myprototype.js 2006-06-28 19:59:12 UTC (rev 634)
@@ -1,10 +1,4 @@
-/* Prototype JavaScript framework, version 1.4.0
- * (c) 2005 Sam Stephenson <sa...@co...>
- *
- * Prototype is freely distributable under the terms of an MIT-style license.
- * For details, see the Prototype web site: http://prototype.conio.net/
- *
-/*--------------------------------------------------------------------------*/
+// modified prototype library
var Prototype = {
Version: '1.4.0',
Modified: trunk/themes/default/templates/pfcclient.js.tpl.php
===================================================================
--- trunk/themes/default/templates/pfcclient.js.tpl.php 2006-06-28 14:27:42 UTC (rev 633)
+++ trunk/themes/default/templates/pfcclient.js.tpl.php 2006-06-28 19:59:12 UTC (rev 634)
@@ -628,8 +628,10 @@
div.style.padding = "2px 5px 2px 5px";
pre = document.createElement('pre');
- Element.addClassName(pre, '<?php echo $prefix; ?>info');
- Element.addClassName(pre, '<?php echo $prefix; ?>info_'+cmd);
+ pre.setAttribute('class', '<?php echo $prefix; ?>info <?php echo $prefix; ?>info_'+cmd);
+ pre.setAttribute('className', '<?php echo $prefix; ?>info <?php echo $prefix; ?>info_'+cmd); // for IE6
+ // Element.addClassName(pre, '<?php echo $prefix; ?>info');
+ // Element.addClassName(pre, '<?php echo $prefix; ?>info_'+cmd);
pre.style.border = "1px solid #555";
pre.style.padding = "5px";
pre.innerHTML = msg;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|