com web/php: No idea why $(param).scrollTo() isn't working.. but this works atleast: js/common.js

From: Date: Sat, 01 Jan 2011 22:29:18 +0000
Subject: com web/php: No idea why $(param).scrollTo() isn't working.. but this works atleast: js/common.js
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-23673@lists.php.net to get a copy of this message
Commit: e3dd450298d08a47235fc76e57e002f756234b4b Author: Hannes Magnusson <bjori@php.net> Sat, 1 Jan 2011 22:29:18 +0000 Parents: 10e851c04f70b69696f04a6eff6f07004f617f8a Branches: master Link: http://git.php.net/?p=web/php.git;a=commitdiff;h=e3dd450298d08a47235fc76e57e002f756234b4b Log: No idea why $(param).scrollTo() isn't working.. but this works atleast Changed paths: M js/common.js Diff: diff --git a/js/common.js b/js/common.js index a309b92..399a615 100644 --- a/js/common.js +++ b/js/common.js @@ -173,7 +173,7 @@ $(document).ready(function() { $(".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); }); } });

« previous php.webmaster (#23673) next »