X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=testing%2FMCTXWeb%2Fpublic_html%2Fstatic%2Fmctx.control.js;h=212f7088b7010f45b9d71e744c1257784e45c1fb;hb=7deca6b4e089e76e279ae84c0aa25728d91e8fd9;hp=1d5c744d6066f433e094c472d93e7a138f8edc07;hpb=8be554d787c35f80ffd91d77dba87543ff9eda6f;p=matches%2FMCTX3420.git diff --git a/testing/MCTXWeb/public_html/static/mctx.control.js b/testing/MCTXWeb/public_html/static/mctx.control.js index 1d5c744..212f708 100644 --- a/testing/MCTXWeb/public_html/static/mctx.control.js +++ b/testing/MCTXWeb/public_html/static/mctx.control.js @@ -21,6 +21,7 @@ function toggleControls(running) { $("#start-widget").hide(); } else { $("#start-widget").show(); + $("#start-widget input").removeAttr("disabled"); $("#experiment-stop").hide(); $("#pressure-widget").hide(); } @@ -47,6 +48,7 @@ function setSampleRate(id, val, result) { $.fn.loadSensorList = function (result, input) { var select = this; + select.empty(); //Reset list $.ajax({ url : mctx.api + 'identify', @@ -56,7 +58,7 @@ $.fn.loadSensorList = function (result, input) { return; } for (var id in data.sensors) { - var option = $("