From 8ddc109a649899ab6a0b673908186a39c75c8f71 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Wed, 12 Dec 2018 08:37:20 +0100 Subject: GUI: add progress bar --- python/gui/static/js/odr-predistortion.js | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'python/gui/static/js/odr-predistortion.js') diff --git a/python/gui/static/js/odr-predistortion.js b/python/gui/static/js/odr-predistortion.js index 04d2773..739e0ee 100644 --- a/python/gui/static/js/odr-predistortion.js +++ b/python/gui/static/js/odr-predistortion.js @@ -29,6 +29,12 @@ function resultrefresh() { $('#dpdresults').html(summary); $('#dpdstatus').text(data['state']); + var percentage = data['stateprogress']; + if (percentage > 100) { + percentage = 100; + } + $('#dpdprogress').css('width', percentage + '%'); + $('#dpdprogresstext').text(percentage + '%'); }); jqxhr.always(function() { -- cgit v1.2.3