I am using a script for smooth scrolling from here Smooth scrolling when clicking an anchor link (the version where the URL is changed).
It works for all anchors except those that have a . in their ID.  So linking to:
- 1 works
- 1.1 doesn't work
Any idea of how to fix this?
Code:
var $root = $('html, body');
$('a').click(function() {
    var href = $.attr(this, 'href');
    $root.animate({
        scrollTop: $(href).offset().top
    }, 500, function () {
        window.location.hash = href;
    });
    return false;
});
 
     
    