Disable links with href=#, so users can preview :active state easily.

This commit is contained in:
Utkarsh Kukreti 2013-01-04 16:44:55 +05:30
parent 16b6298026
commit deebd78d5b

View File

@ -25,9 +25,12 @@ $(function() {
}
});
// Disable links with href="#" inside <section>, so users can click on them
// to preview :active state without being scrolled up to the top of the page.
$('section a[href="#"]').click(function(e) {
e.preventDefault();
e.stopPropagation();
});
var firstInHistory = true;