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