diff options
author | Yukai Huang | 2017-01-21 12:08:52 +0800 |
---|---|---|
committer | Yukai Huang | 2017-01-21 12:08:52 +0800 |
commit | 4bbe035beb41ad2c9f43434d0d90209850a62f70 (patch) | |
tree | 53095b529b1220b6e2d23f0dbc255af2ca54d7d7 /public/js/index.js | |
parent | a9a38c3d75b1cf467bb3b4484abfc09dcbcea107 (diff) | |
parent | 1de4242473b74afdb2d3e358e3b213ef156ca0de (diff) |
Merge branch 'master' into frontend-next
Diffstat (limited to '')
-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 a7e69e81..8e3bc561 100644 --- a/public/js/index.js +++ b/public/js/index.js @@ -1761,6 +1761,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 = []; |