diff options
author | Chad Kieffer <chad@2tbsp.com> | 2009-01-03 19:09:32 +0000 |
---|---|---|
committer | Chad Kieffer <chad@2tbsp.com> | 2009-01-03 19:09:32 +0000 |
commit | bdff96bd547b15dc6940573b9da0e80c45790b3a (patch) | |
tree | 26350eb864e9a73f0f251b9776251f34064bcd81 /themes/default/js/ui.init.js | |
parent | 0402e326cb1274a4decaa54d3606453818a665f9 (diff) |
Added a jump to comments button with a scroll to effect.
Diffstat (limited to 'themes/default/js/ui.init.js')
-rw-r--r-- | themes/default/js/ui.init.js | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/themes/default/js/ui.init.js b/themes/default/js/ui.init.js index e373005e..245723ce 100644 --- a/themes/default/js/ui.init.js +++ b/themes/default/js/ui.init.js @@ -20,7 +20,16 @@ $(document).ready(function() { // Photo/Item item view only if ($("#gItem").length) { - sizedImage(); + // Ensure that sized image versions + // fit inside their container + sizedImage(); + + // Add scroll effect for links to named anchors + $.localScroll({ + queue: true, + duration: 1000, + hash: true + }); } // Apply Superfish menus |