Mercurial > kallithea
changeset 4373:9dfd9d242728
pull requests: hack to "reload" page to make #target links work first time
author | Mads Kiilerich <madski@unity3d.com> |
---|---|
date | Fri, 18 Jul 2014 19:22:01 +0200 |
parents | a2d236bbcd52 |
children | 6eafa1e06d71 |
files | kallithea/templates/pullrequests/pullrequest_show.html |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/kallithea/templates/pullrequests/pullrequest_show.html Fri Jul 18 19:22:01 2014 +0200 +++ b/kallithea/templates/pullrequests/pullrequest_show.html Fri Jul 18 19:22:01 2014 +0200 @@ -364,6 +364,11 @@ YUE.on(YUD.get('update_pull_request'),'click',function(e){ updateReviewers(undefined, "${c.repo_name}", "${c.pull_request.pull_request_id}"); }) + + // hack: re-navigate to target after JS is done ... if a target is set and setting href thus won't reload + if (window.location.hash != "") { + window.location.href = window.location.href; + } }) </script>