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

From: Date: Sat, 01 Jan 2011 23:05:47 +0000
Subject: Re: svn: /web/php/trunk/js/ common.js
References: 1  Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-10166@lists.php.net to get a copy of this message
On Sat, Jan 1, 2011 at 10:29 PM, Hannes Magnusson <bjori@php.net> wrote: > bjori                                    Sat, 01 Jan 2011 22:29:18 +0000 > > Revision: > http://svn.php.net/viewvc?view=revision&revision=306968 > > Log: > No idea why $(param).scrollTo() isn't working.. but this works atleast > > Changed paths: >    U   web/php/trunk/js/common.js > > Modified: web/php/trunk/js/common.js > =================================================================== > --- web/php/trunk/js/common.js  2011-01-01 22:05:35 UTC (rev 306967) > +++ web/php/trunk/js/common.js  2011-01-01 22:29:18 UTC (rev 306968) > @@ -173,7 +173,7 @@ >         $(".parameters .term i > tt.parameter").each(function (idx, param) { >             if ($(param).text() == $(node).text().substring(1)) { >                 $(node).click(function() { > -                    $(param).scrollTo(0, 800); > +                    $.scrollTo($(param), 800); >                 }); >             } >         }); > > > -- > PHP Webmaster List Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > I had the same issue with the TOC code. You always gotta pass in either a string (selector) or a jquery object as the first param.

« previous php.webmaster (#10166) next »