do {
curleft += obj.offsetLeft;
curtop += obj.offsetTop;
- }
+ }
while (obj = obj.offsetParent);
return [curleft,curtop];
}
}
function switchBranch() {
- var branch = jQuery('#branch-list').val();
- document.location.href = uriFor('current', branch);
+ var branch = jQuery('#branch-list').val(),
+ action = branch != '...' ? 'current' : 'heads';
+ document.location.href = uriFor(action, encodeURIComponent(branch).replace('/', '%2F'));
}
function compareDiffs(){