chipx86 got a fish trophy!
Move the review banner code out into a DraftReviewBannerView.
Review Request #4114 — Created May 8, 2013 and submitted
Move the review banner code out into a DraftReviewBannerView. DraftReviewBannerView handles showing/hiding the banner in response to events on the draft review, and handles the buttons on the banner. DraftReviewBannerView is a singleton. It's created once up-front. Callers can access the instance through RB.DraftReviewBannerView.instance in order to show or hide the banner.
Manually tested all buttons, and various events that show the banner. Unit tests pass.
This is a review from Review Bot. Tool: PEP8 Style Checker Processed Files: reviewboard/settings.py Ignored Files: reviewboard/static/rb/js/views/abstractCommentBlockView.js reviewboard/templates/js/tests.html reviewboard/static/rb/js/views/draftReviewBannerView.js reviewboard/static/rb/js/views/tests/draftReviewBannerViewTests.js reviewboard/static/rb/js/views/reviewRequestEditorView.js reviewboard/static/rb/js/diffviewer.js reviewboard/static/rb/js/reviews.js