forked from public/foundryvtt-reve-de-dragon
Amélioration "effacer les filtres"
This commit is contained in:
@ -155,7 +155,7 @@ export class FenetreRechercheTirage extends Application {
|
||||
|
||||
this.html.find("input.activate-filter").change(event => this.changeListeFiltresActifs())
|
||||
|
||||
this.html.find("a.supprimer-filtres").click(async event => this.html.find('input.activate-filter:checked').prop("checked", false))
|
||||
this.html.find("a.supprimer-filtres").click(async event => this.supprimerFiltres())
|
||||
|
||||
this.html.find("a.recherche-filtres").click(async event => await this.recherche())
|
||||
|
||||
@ -166,6 +166,11 @@ export class FenetreRechercheTirage extends Application {
|
||||
})
|
||||
}
|
||||
|
||||
supprimerFiltres() {
|
||||
this.html.find('div.liste-resultats').html('');
|
||||
return this.html.find('input.activate-filter:checked').prop("checked", false);
|
||||
}
|
||||
|
||||
async recherche() {
|
||||
const table = await this.buildTable();
|
||||
const htmlResultats = await renderTemplate(`systems/foundryvtt-reve-de-dragon/templates/tirage/liste-resultats.hbs`, { resultats: table });
|
||||
|
Reference in New Issue
Block a user