Welcome to mirror list, hosted at ThFree Co, Russian Federation.

groups_list.js « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 56a8cbf6d037fc0d726e58736ea101d7a9d40f98 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import FilterableList from './filterable_list';

/**
 * Makes search request for groups when user types a value in the search input.
 * Updates the html content of the page with the received one.
 */
export default class GroupsList {
  constructor() {
    const form = document.querySelector('form#group-filter-form');
    const filter = document.querySelector('.js-groups-list-filter');
    const holder = document.querySelector('.js-groups-list-holder');

    if (form && filter && holder) {
      const list = new FilterableList(form, filter, holder);
      list.initSearch();
    }
  }
}