Mercurial > kallithea
changeset 7642:b1e2ae0dd6e1 stable
files: drop extra history push on source pages that trapped the user without option for going back (Issue #343)
Source pages don't need any special history awareness.
author | Mads Kiilerich <mads@kiilerich.com> |
---|---|
date | Tue, 30 Apr 2019 19:04:38 +0200 |
parents | 6b7a0cd02857 |
children | 7135fd2db7c9 |
files | kallithea/templates/files/files_source.html |
diffstat | 1 files changed, 0 insertions(+), 12 deletions(-) [+] |
line wrap: on
line diff
--- a/kallithea/templates/files/files_source.html Tue Apr 30 19:05:16 2019 +0200 +++ b/kallithea/templates/files/files_source.html Tue Apr 30 19:04:38 2019 +0200 @@ -77,15 +77,3 @@ %endif </div> </div> - -<script> - $(document).ready(function(){ - var state = { - node_list_url: node_list_url.replace('__REV__',${h.js(c.changeset.raw_id)}).replace('__FPATH__', ${h.js(h.safe_unicode(c.file.path))}), - url_base: url_base.replace('__REV__',${h.js(c.changeset.raw_id)}), - rev: ${h.js(c.changeset.raw_id)}, - f_path: ${h.js(h.safe_unicode(c.file.path))} - } - window.history.pushState(state, null, ${h.js(h.url.current())}); - }); -</script>