svn: /web/php/trunk/js/ common.js

[email protected] (Paul Dragoonis)
Newsgroups php.webmaster
Message-ID <[email protected]>
dragoonis                                Fri, 31 Dec 2010 05:37:08 +0000

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

Log:
Adding alternate row colors: better jQuery selector

Changed paths:
    U   web/php/trunk/js/common.js

Modified: web/php/trunk/js/common.js
===================================================================
--- web/php/trunk/js/common.js	2010-12-31 05:35:25 UTC (rev 306900)
+++ web/php/trunk/js/common.js	2010-12-31 05:37:08 UTC (rev 306901)
@@ -122,7 +122,7 @@
     });

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

 });
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.