Refactor $.fn.bug_infobox and $.fn.user_infobox to share code.

Review Request #6053 — Created July 3, 2014 and submitted — Latest diff uploaded

Information

Review Board
master
8ddbed0...

Reviewers

This is the first step in refactoring the infoboxes to use backbone models and
views. The code for user and bug infoboxes was substantially similar, and
there's no reason why they had to be separate. All of the code is now shared,
and the API entry-points (bug_infobox and user_infobox) just call into the
common method and pass an ID for the infobox element.

Tested that both infoboxes worked as expected.