Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/your-identity/hugo-theme-dimension.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--static/assets/js/main.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/static/assets/js/main.js b/static/assets/js/main.js
index f5fcd8c..8cd9fa7 100644
--- a/static/assets/js/main.js
+++ b/static/assets/js/main.js
@@ -295,7 +295,7 @@
$('<div class="close">Close</div>')
.appendTo($this)
.on('click', function() {
- location.hash = '';
+ history.go(-1);
});
// Prevent clicks from inside article from bubbling.
@@ -308,9 +308,9 @@
// Events.
$body.on('click', function(event) {
- // Article visible? Hide.
+ // Outside click. Article visible. Go Back.
if ($body.hasClass('is-article-visible'))
- $main._hide(true);
+ history.go(-1);
});