Fix filtering repositories in the New Review Request page.
Review Request #11674 — Created June 24, 2021 and submitted
Due to sidebar redesign work in Review Board 4.0, a CSS selector for the
search field in the New Review Request page was no longer correct,
preventing users from filtering the list of repositories.
This fixes up the selector, and adds unit tests so this can't regress
Unit tests passed.
Manually tested filtering of repositories.
Moved some variables before functions that use them in order to satisfy Review Bot.
Revision 2 (+140 -12)