Changeset - b1e2ae0dd6e1
[Not reviewed]
stable
0 1 0
Mads Kiilerich - 7 years ago 2019-04-30 19:04:38
mads@kiilerich.com
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.
1 file changed with 0 insertions and 12 deletions:
0 comments (0 inline, 0 general)
kallithea/templates/files/files_source.html
Show inline comments
 
@@ -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>
0 comments (0 inline, 0 general)