Re: [PHP-WEBMASTER] svn: /web/php/trunk/js/ common.js

[email protected] (Paul Dragoonis)
Newsgroups php.webmaster
Message-ID <[email protected]>
On Sat, Jan 1, 2011 at 10:29 PM, Hannes Magnusson <[email protected]> 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.
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.