summaryrefslogtreecommitdiffstats
path: root/gui/static/js/odr-predistortion.js
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2018-08-06 09:10:42 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2018-08-06 09:10:42 +0200
commit7e91c6a59858325593093c046c213c6bd4e7e4f3 (patch)
tree0a5765a048fd3910caf2fc396d113ef2ef5ea753 /gui/static/js/odr-predistortion.js
parent08705c0399240f984cf54294a369cb3a896e089a (diff)
downloaddabmod-7e91c6a59858325593093c046c213c6bd4e7e4f3.tar.gz
dabmod-7e91c6a59858325593093c046c213c6bd4e7e4f3.tar.bz2
dabmod-7e91c6a59858325593093c046c213c6bd4e7e4f3.zip
Some GUI changes
Diffstat (limited to 'gui/static/js/odr-predistortion.js')
-rw-r--r--gui/static/js/odr-predistortion.js22
1 files changed, 22 insertions, 0 deletions
diff --git a/gui/static/js/odr-predistortion.js b/gui/static/js/odr-predistortion.js
index d385f6c..dce3922 100644
--- a/gui/static/js/odr-predistortion.js
+++ b/gui/static/js/odr-predistortion.js
@@ -40,6 +40,28 @@ $(function(){
},
});
});
+
+ $('#dpdstatusbutton').click(function() {
+ $.ajax({
+ type: "GET",
+ url: "/api/dpd_status",
+ contentType: 'application/json',
+ dataType: '',
+ data: '',
+
+ error: function(data) {
+ $.gritter.add({
+ title: 'DPD Status Update',
+ text: "ERROR",
+ image: '/fonts/warning.png',
+ sticky: true,
+ });
+ },
+ success: function(data) {
+ $('#dpdstatus').val(data);
+ },
+ });
+ });
});