X button fix

This commit is contained in:
Tobi 2025-04-27 01:14:36 +02:00
parent 91b942456c
commit a68a8644f8

View file

@ -296,6 +296,11 @@
location.hash = '';
});
// Add click handler for the × button
$this.find('.close').on('click', function() {
location.hash = '';
});
// Prevent clicks from inside article from bubbling.
$this.on('click', function(event) {
event.stopPropagation();
@ -396,9 +401,4 @@
$main._show(location.hash.substr(1), true);
});
// Close button functionality
$('.close').on('click', function() {
$main._hide(true);
});
})(jQuery);