diff options
author | Wu Cheng-Han | 2017-01-16 12:42:21 +0800 |
---|---|---|
committer | Wu Cheng-Han | 2017-01-16 12:42:21 +0800 |
commit | e00daee6c0dd0c6e5f2654d24995bc9d86fbc452 (patch) | |
tree | 0486a32a99845a6a118a96f0fb6490bbef9a4cab /public/js/index.js | |
parent | 3c0667813cb1a3d5a0d730eabc70835b52518dfe (diff) |
Update to prevent all empty link change hash
Diffstat (limited to 'public/js/index.js')
-rw-r--r-- | public/js/index.js | 4 |
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 = []; |