diff --git a/rhodecode/templates/pullrequests/pullrequest.html b/rhodecode/templates/pullrequests/pullrequest.html --- a/rhodecode/templates/pullrequests/pullrequest.html +++ b/rhodecode/templates/pullrequests/pullrequest.html @@ -48,13 +48,8 @@ gravatar - ${h.select('other_repo',c.default_pull_request ,c.other_repos,class_='refs')}:${h.select('other_ref',c.default_pull_request_rev,c.default_revs,class_='refs')} + ${h.select('other_repo',c.default_pull_request,c.other_repos,class_='refs')}:${h.select('other_ref',c.default_pull_request_rev,c.default_revs,class_='refs')} - - - ${_('Refresh')} - -
@@ -182,15 +177,22 @@ }) } + ## refresh automatically when something changes (org_repo can't change) + + YUE.on('org_ref', 'change', function(e){ + loadPreview(); + }); + YUE.on('other_repo', 'change', function(e){ var repo_name = e.currentTarget.value; // replace the