X button fix
This commit is contained in:
parent
91b942456c
commit
a68a8644f8
1 changed files with 5 additions and 5 deletions
|
@ -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);
|
Loading…
Add table
Add a link
Reference in a new issue