From de865c61aa01587cacca953c98cdc4ac542a92f3 Mon Sep 17 00:00:00 2001 From: Ludovic Stephan Date: Fri, 14 Apr 2017 11:36:52 -0300 Subject: [PATCH] Move container clearing --- kfet/static/kfet/js/history.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kfet/static/kfet/js/history.js b/kfet/static/kfet/js/history.js index c7663509..772ac1bf 100644 --- a/kfet/static/kfet/js/history.js +++ b/kfet/static/kfet/js/history.js @@ -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);