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 = '';
|
location.hash = '';
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// Add click handler for the × button
|
||||||
|
$this.find('.close').on('click', function() {
|
||||||
|
location.hash = '';
|
||||||
|
});
|
||||||
|
|
||||||
// Prevent clicks from inside article from bubbling.
|
// Prevent clicks from inside article from bubbling.
|
||||||
$this.on('click', function(event) {
|
$this.on('click', function(event) {
|
||||||
event.stopPropagation();
|
event.stopPropagation();
|
||||||
|
@ -396,9 +401,4 @@
|
||||||
$main._show(location.hash.substr(1), true);
|
$main._show(location.hash.substr(1), true);
|
||||||
});
|
});
|
||||||
|
|
||||||
// Close button functionality
|
|
||||||
$('.close').on('click', function() {
|
|
||||||
$main._hide(true);
|
|
||||||
});
|
|
||||||
|
|
||||||
})(jQuery);
|
})(jQuery);
|
Loading…
Add table
Add a link
Reference in a new issue