@@ -167,49 +167,49 @@ ${self.repo_context_bar('showpullrequest
## TODO: make nice link like link_to_ref() do
$('#org_rev_span').html(org_ref[2].substr(0,12));
var other_repo = $('#pull_request_form #other_repo').val();
var other_ref = $('#pull_request_form #other_ref').val().split(':');
$('#other_rev_span').html(other_ref[2].substr(0,12));
var rev_data = {
'__org_repo__': org_repo,
'__org_ref_name__': org_ref[2],
'__other_repo__': other_repo,
'__other_ref_name__': other_ref[2]
}; // gather the org/other ref and repo here
for (k in rev_data){
url = url.replace(k,rev_data[k]);
}
if (pendingajax) {
pendingajax.abort();
pendingajax = undefined;
pendingajax = asynchtml(url, $('#pull_request_overview'), function(o){
var jsdata = eval('('+YUD.get('jsdata').innerHTML+')'); // TODO: just get json
var jsdata = eval('('+$('#jsdata').html()+')'); // TODO: just get json
var r = new BranchRenderer('graph_canvas', 'graph_content_pr', 'chg_');
r.render(jsdata,100);
});
$(document).ready(function(){
$("#org_repo").select2({
dropdownAutoWidth: true
## (org_repo can't change)
$("#org_ref").select2({
dropdownAutoWidth: true,
sortResults: branchSort
$("#org_ref").on("change", function(e){
loadPreview();
$("#other_repo").select2({
$("#other_repo").on("change", function(e){
otherrepoChanged();
Status change: