debian-mirror-gitlab/app/assets/javascripts/projects_list.js

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

19 lines
636 B
JavaScript
Raw Normal View History

2019-09-30 21:07:59 +05:30
import ProjectsFilterableList from './projects/projects_filterable_list';
2017-08-17 22:00:37 +05:30
/**
* Makes search request for projects when user types a value in the search input.
* Updates the html content of the page with the received one.
*/
export default class ProjectsList {
constructor() {
const form = document.querySelector('form#project-filter-form');
const filter = document.querySelector('.js-projects-list-filter');
const holder = document.querySelector('.js-projects-list-holder');
2016-09-13 17:45:13 +05:30
2017-08-17 22:00:37 +05:30
if (form && filter && holder) {
2019-09-30 21:07:59 +05:30
const list = new ProjectsFilterableList(form, filter, holder);
2017-08-17 22:00:37 +05:30
list.initSearch();
}
}
}