WIP: Aureplop/kpsul js refactor #501

Draft
delobell wants to merge 215 commits from aureplop/kpsul_js_refactor into master
Showing only changes of commit de865c61aa - Show all commits

View file

@ -41,7 +41,6 @@ class KHistory {
} }
fetch(api_options) { fetch(api_options) {
this._$container.html('');
this.list.clear(); this.list.clear();
if (api_options) if (api_options)
@ -53,6 +52,7 @@ class KHistory {
} }
display() { display() {
this._$container.html('');
this.list.display(this._$container, this.templates, {}); this.list.display(this._$container, this.templates, {});
var nb_opes = this._$container.find('.ope[canceled="false"]').length; var nb_opes = this._$container.find('.ope[canceled="false"]').length;
$('#nb_opes').text(nb_opes); $('#nb_opes').text(nb_opes);