Mercurial > kallithea
changeset 7236:0d39e48baec0
pullrequest: resize graph in list of available changesets when page is resized
02aef1484695 introduced dynamic width of the graph of available changesets. We
thus also need resizing of the graph when the page is resized.
author | Mads Kiilerich <mads@kiilerich.com> |
---|---|
date | Mon, 02 Apr 2018 18:37:23 +0200 |
parents | 06c7273e2086 |
children | ac57e45ed903 |
files | kallithea/templates/pullrequests/pullrequest_show.html |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/kallithea/templates/pullrequests/pullrequest_show.html Sun Apr 08 16:49:54 2018 +0200 +++ b/kallithea/templates/pullrequests/pullrequest_show.html Mon Apr 02 18:37:23 2018 +0200 @@ -357,6 +357,10 @@ var avail_r = new BranchRenderer('avail_graph_canvas', 'updaterevs-table', 'chg_available_'); avail_r.render(avail_jsdata); + $(window).resize(function(){ + avail_r.render(avail_jsdata); + }); + move_comments($(".comments .comments-list-chunk")); $('#updaterevs input').change(function(e){