Fix default branch selection in post-commit UI.

Review Request #8032 — Created March 5, 2016 and submitted

Information

Review Board
release-2.5.x
00be043...

Reviewers

The refactoring and improvements I did to RB.CollectionView broke the
selection of the default branch in the post-commit section of the New Review
Request UI. This wasn't super critical, except in the case where there's only a
single branch, in which case the commits would never be listed.

I've updated the function naming to match the new name in CollectionView.

Loaded a repository in the New Review Request UI and saw the list of commits on
the default branch without having to click anything.

reviewbot
  1. Tool: PEP8 Style Checker
    Ignored Files:
        reviewboard/static/rb/js/newReviewRequest/views/branchesView.js
    
    
    
    Tool: Pyflakes
    Ignored Files:
        reviewboard/static/rb/js/newReviewRequest/views/branchesView.js
    
    
  2. 
      
brennie
  1. Ship It!
  2. 
      
david
Review request changed
Status:
Completed
Change Summary:
Pushed to release-2.5.x (f9d02e7)