summaryrefslogtreecommitdiff
path: root/public/js/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'public/js/index.js')
-rw-r--r--public/js/index.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/public/js/index.js b/public/js/index.js
index 14235bc3..a018e513 100644
--- a/public/js/index.js
+++ b/public/js/index.js
@@ -1754,6 +1754,10 @@ ui.toolbar.uploadImage.bind('change', function (e) {
ui.toc.dropdown.click(function (e) {
e.stopPropagation();
});
+// prevent empty link change hash
+$('a[href="#"]').click(function (e) {
+ e.preventDefault();
+});
//modal actions
var revisions = [];