mirror of
https://github.com/FortAwesome/Font-Awesome.git
synced 2024-12-25 21:11:30 +08:00
Disable links with href=#, so users can preview :active state easily.
This commit is contained in:
parent
16b6298026
commit
deebd78d5b
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user