From 7e91c6a59858325593093c046c213c6bd4e7e4f3 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Mon, 6 Aug 2018 09:10:42 +0200 Subject: Some GUI changes --- gui/static/js/odr-predistortion.js | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'gui/static/js/odr-predistortion.js') 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); + }, + }); + }); }); -- cgit v1.2.3