{"size": 557, "ext": "js", "max_stars_repo_path": "common/static/js/selection.js", "max_stars_repo_name": "DemocracyLab/DemocracyLab-CivicTechExchange", "max_stars_repo_stars_event_min_datetime": "2017-09-30T16:23:43.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-30T23:26:50.000Z", "max_issues_repo_path": "common/static/js/selection.js", "max_issues_repo_name": "DemocracyLab/DemocracyLab-CivicTechExchange", "max_issues_repo_issues_event_min_datetime": "2017-10-26T06:59:14.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-10T22:34:29.000Z", "max_forks_repo_path": "common/static/js/selection.js", "max_forks_repo_name": "DemocracyLab/DemocracyLab-CivicTechExchange", "max_forks_repo_forks_event_min_datetime": "2017-09-16T17:25:10.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-04T18:14:02.000Z"}
{"max_stars_count": 64, "max_issues_count": 339, "max_forks_count": 58, "avg_line_length": 26.5238095238, "max_line_length": 70, "alphanum_fraction": 0.6822262118}
/**
 * Initialize multi-selection box
 * @requires selectize.js (https://github.com/selectize/selectize.js/)
 *
 * @param selectElementId       Id of select element
 * @param config                Selectize configuration options
 */

function initializeSelectionControl(selectElementId, config) {
  //Merge configuration settings in with defaults
  config = _.merge(config || {}, {
    persist: false,
    maxItems: null,
    hideSelected: true,
    closeAfterSelect: true,
    allowEmptyOption: true,
  });

  $("#" + selectElementId).selectize(config);
}
