Move container clearing

This commit is contained in:
Ludovic Stephan 2017-04-14 11:36:52 -03:00
parent 8c02e5da0c
commit de865c61aa

View file

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