Re: [PHP-WEBMASTER] svn: /web/php/trunk/ js/common.js styles/doc.css
[email protected] (Hannes Magnusson)
| Newsgroups | php.webmaster |
|---|---|
| Message-ID | <[email protected]> |
On Fri, Dec 31, 2010 at 06:35, Paul Dragoonis <[email protected]> wrote: > dragoonis Fri, 31 Dec 2010 05:35:23 +0000 > > Revision: http://svn.php.net/viewvc?view=revision&revision=306899 > > Log: > Adding alternate row colors > > 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 05:08:53 UTC (rev 306898) > +++ web/php/trunk/js/common.js 2010-12-31 05:35:23 UTC (rev 306899) > @@ -121,6 +121,10 @@ > $(this).append("<a class='genanchor' href='#" + $(this).parent().attr("id") + "'> ¶</a>"); > }); > > + if($('.docs table.doctable').length) { > + $('tbody tr:even').addClass("alt-row") > + } > + > }); Browsers support this feature just fine in CSS.. I don't think we should add workaround for browsers that don't support it in js. -Hannes