summaryrefslogtreecommitdiff
path: root/public
diff options
context:
space:
mode:
authorWu Cheng-Han2016-10-22 15:42:56 +0800
committerWu Cheng-Han2016-10-22 15:42:56 +0800
commitd4bb87b8ec9ce053ca8e28cc31905c0656d9a46a (patch)
tree244710ba80e13dc31e8be86aa49bb4def9844f08 /public
parent1b36cefd4b7893be14b83a0256ce86ccf2171706 (diff)
Fix ReferenceError of scollToTop and scollToBottom in index.js
Diffstat (limited to 'public')
-rw-r--r--public/js/index.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/public/js/index.js b/public/js/index.js
index 4be11e86..1ba10e14 100644
--- a/public/js/index.js
+++ b/public/js/index.js
@@ -1915,6 +1915,9 @@ function scrollToBottom() {
}
}
+window.scrollToTop = scrollToTop;
+window.scrollToBottom = scrollToBottom;
+
var enoughForAffixToc = true;
//scrollspy