maplesyrup/maple — pull request #410 by CalvinFernandez (2013-06-03 06:11:28+00:00)
Title: fixed reward and campaign bug

ugly code but bootstrap has a bug with modals displaying behind the overlay if the parent container of the modal is positioned fixed or absolute (which the campaigns now are). The fix was to remove the modals from the fixed campaign container and put them in a div that wasn't positioned as fixed; but the problem was then that the campaign view had no knowledge of the modals and thus couldn't bind events to them. Thus ugly jquery event binding and unbinding ensued in the render function of the campaign show and campaign views.