svn: /web/php/trunk/ js/common.js styles/doc.css

[email protected] (Hannes Magnusson)
Newsgroups php.webmaster
Message-ID <[email protected]>
bjori                                    Fri, 31 Dec 2010 12:28:15 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=306918

Log:
use css for this

Changed paths:
    U   web/php/trunk/js/common.js
    U   web/php/trunk/styles/doc.css

Modified: web/php/trunk/js/common.js
===================================================================
--- web/php/trunk/js/common.js	2010-12-31 12:21:56 UTC (rev 306917)
+++ web/php/trunk/js/common.js	2010-12-31 12:28:15 UTC (rev 306918)
@@ -172,10 +172,6 @@
         $(this).append("<a class='genanchor' href='#" + $(this).parent().attr("id") + "'> ¶</a>");
     });

-    if($('.docs table.doctable').length) {
-        $(this).find('tbody tr:even').addClass("alt-row")
-    }
-
 });

 /**

Modified: web/php/trunk/styles/doc.css
===================================================================
--- web/php/trunk/styles/doc.css	2010-12-31 12:21:56 UTC (rev 306917)
+++ web/php/trunk/styles/doc.css	2010-12-31 12:28:15 UTC (rev 306918)
@@ -143,7 +143,7 @@
     padding: 2px 5px;
 }

-.docs .doctable tr.alt-row {
+.docs .doctable tbody tr:nth-child(odd) {
     background-color: #EFEFEF;
 }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.