aboutsummaryrefslogtreecommitdiffstats
path: root/python/gui/static
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2018-12-12 08:37:20 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2018-12-12 08:37:20 +0100
commit8ddc109a649899ab6a0b673908186a39c75c8f71 (patch)
tree72f77cb95387513f6d3d982c9dc2ef77829bebae /python/gui/static
parent5d825e7586814d47f29d3b4324effb36c6acd9ed (diff)
downloaddabmod-8ddc109a649899ab6a0b673908186a39c75c8f71.tar.gz
dabmod-8ddc109a649899ab6a0b673908186a39c75c8f71.tar.bz2
dabmod-8ddc109a649899ab6a0b673908186a39c75c8f71.zip
GUI: add progress bar
Diffstat (limited to 'python/gui/static')
-rw-r--r--python/gui/static/js/odr-predistortion.js6
1 files changed, 6 insertions, 0 deletions
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() {