public/js/controllers/MainCtrl.js
/**
   * Handles adding companies to the company dropdown
   * @param {company[]} companies
   */
Handles adding companies to the company dropdown
@param {company[]} companies
Handles adding companies to the company dropdown @param { company [] } companies
function handleCompanies(companies) {
    var picker = $('#' + SELECT_PICKER_ID);
    var newItems = '';
    for (var i=0; i<companies.length; i++) {
      var company = companies[i];
      newItems += ('<option data-subtext="' + company.ticker + '">' + company.name + '</option>');
    }
    picker.append(newItems);
    picker.selectpicker('refresh');
  }
function handleCompanies ( companies ) { var picker = $ ( '#' + SELECT_PICKER_ID ) ; var newItems = '' ; for ( var i = 0 ; i < companies . length ; i ++ ) { var company = companies [ i ] ; newItems += ( '<option data-subtext="' + company . ticker + '">' + company . name + '</option>' ) ; } picker . append ( newItems ) ; picker . selectpicker ( 'refresh' ) ; }
Handles adding companies to the company dropdown
 @param {company[]} companies
Handles adding companies to the company dropdown @param { company [] } companies