gitlab-org--gitlab-foss/app/assets/javascripts/groups/groups_list.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

19 lines
592 B
JavaScript
Raw Permalink Normal View History

import FilterableList from '~/filterable_list';
2017-03-02 06:05:48 -05:00
/**
* 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');
2017-03-02 06:05:48 -05:00
if (form && filter && holder) {
const list = new FilterableList(form, filter, holder);
list.initSearch();
}
2017-03-02 06:05:48 -05:00
}
}