From e00daee6c0dd0c6e5f2654d24995bc9d86fbc452 Mon Sep 17 00:00:00 2001 From: Wu Cheng-Han Date: Mon, 16 Jan 2017 12:42:21 +0800 Subject: Update to prevent all empty link change hash --- public/js/index.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'public/js/index.js') 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 = []; -- cgit v1.2.3