osu-cass/SeaGrant_Proto — pull request #37 by jhcarr (2014-11-13 22:00:53+00:00)
Title: Make list dislplay data depending checkboxes

This commit was cherry-picked from:
https://github.com/Free-BSG/SeaGrant_Proto/tree/feature-3779_checkboxSorting

-------------------------------------------------------------------------------------------------------

I was able to make it so that a user could either see vendors or products
in the list view by selecting the corresponding checkbox. Also only one
checkbox could be used at a time. The checkboxes set the store that list
page uses to populate its list. In order to do this I also had to break
out some from the onChooseProduct function in order to make the
populatePstore function so that we could populate the productList store
with the current data that we were searching for. I broke out this new
function and the numberOfVendors function so that the code would be "DRY".