Commit 0791116f authored by Clement Ho's avatar Clement Ho

Refactor loadingTemplate to abstract class

parent 50663661
......@@ -17,10 +17,7 @@
current_user: true,
},
searchValueFunction: this.getSearchInput,
loadingTemplate: `
<div class="filter-dropdown-loading">
<i class="fa fa-spinner fa-spin"></i>
</div>`,
loadingTemplate: this.loadingTemplate,
}
};
}
......
......@@ -17,10 +17,7 @@
current_user: true,
},
searchValueFunction: this.getSearchInput,
loadingTemplate: `
<div class="filter-dropdown-loading">
<i class="fa fa-spinner fa-spin"></i>
</div>`,
loadingTemplate: this.loadingTemplate,
}
};
}
......
......@@ -10,10 +10,7 @@
droplabAjax: {
endpoint: 'labels.json',
method: 'setData',
loadingTemplate: `
<div class="filter-dropdown-loading">
<i class="fa fa-spinner fa-spin"></i>
</div>`,
loadingTemplate: this.loadingTemplate,
},
droplabFilter: {
filterFunction: this.filterWithSymbol.bind(this, '~'),
......
......@@ -10,10 +10,7 @@
droplabAjax: {
endpoint: 'milestones.json',
method: 'setData',
loadingTemplate: `
<div class="filter-dropdown-loading">
<i class="fa fa-spinner fa-spin"></i>
</div>`,
loadingTemplate: this.loadingTemplate,
},
droplabFilter: {
filterFunction: this.filterWithSymbol.bind(this, '%'),
......
......@@ -9,6 +9,9 @@
this.hookId = 'filtered-search';
this.input = input;
this.dropdown = dropdown;
this.loadingTemplate = `<div class="filter-dropdown-loading">
<i class="fa fa-spinner fa-spin"></i>
</div>`;
this.bindEvents();
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment