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

From: Date: Fri, 31 Dec 2010 09:10:57 +0000
Subject: Re: svn: /web/php/trunk/ js/common.js styles/doc.css
References: 1  Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-10129@lists.php.net to get a copy of this message
On Fri, Dec 31, 2010 at 06:35, Paul Dragoonis <dragoonis@php.net> 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

« previous php.webmaster (#10129) next »