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
@@ -53,7 +53,7 @@
- ${h.select('other_repo',c.default_pull_request ,c.other_repos,class_='refs')}:${h.select('other_ref','',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')}
@@ -135,6 +135,7 @@
PullRequestAutoComplete('user', 'reviewers_container', _USERS_AC_DATA, _GROUPS_AC_DATA);
var other_repos_info = ${c.other_repos_info|n};
+
var loadPreview = function(){
YUD.setStyle(YUD.get('pull_request_overview_url').parentElement,'display','none');
var url = "${h.url('compare_url',
@@ -145,28 +146,38 @@
as_form=True)}";
var select_refs = YUQ('#pull_request_form select.refs')
-
+ var rev_data = {}; // gather the org/other ref and repo here
for(var i=0;i1){
key = select_ref.name+"_type";
val = select_ref_data[0];
url = url.replace(key,val);
-
+ rev_data[key] = val;
+
key = select_ref.name;
val = select_ref_data[1];
url = url.replace(key,val);
-
+ rev_data[key] = val;
+
}else{
key = select_ref.name;
val = select_ref.value;
url = url.replace(key,val);
+ rev_data[key] = val;
}
}
+ YUE.on('other_repo', 'change', function(e){
+ var repo_name = e.currentTarget.value;
+ // replace the