Limit the number of branches/tags listed by default.
[catagits/Gitalist.git] / root / static / js / site.js
index 076a377..43340d2 100755 (executable)
@@ -45,8 +45,9 @@ function uriFor(action, sha1) {
 }
 
 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, branch);
 }
 
 function compareDiffs(){