X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=testing%2FMCTXWeb%2Fpublic_html%2Fstatic%2Fmctx.control.js;h=f414a82fc327dd88fec5d67c1aee328945808bed;hb=84814a7d41c3e17aff69096fa00735d375367add;hp=d3b5348eeb9e563368d00711b06471a654c3403e;hpb=7e9d726ccd53626251e56b92c8eec47772bfe0f9;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 d3b5348..f414a82 100644 --- a/testing/MCTXWeb/public_html/static/mctx.control.js +++ b/testing/MCTXWeb/public_html/static/mctx.control.js @@ -153,7 +153,8 @@ $.fn.startExperiment = function (group, experiment, force, result) { data : data }).done(function (data) { if (!result.checkStatus(data)) { - return; + $(group).removeAttr('disabled'); + return; } //Select the can @@ -162,6 +163,7 @@ $.fn.startExperiment = function (group, experiment, force, result) { data : {name : "can_select", set : can_number} }).done(function (data) { if (!result.checkStatus(data)) { + $(group).removeAttr('disabled'); return; } @@ -171,11 +173,12 @@ $.fn.startExperiment = function (group, experiment, force, result) { data : {name : "can_enable", set : 1} }).done(function (data) { if (!result.checkStatus(data)) { + $(group).removeAttr('disabled'); return; } result.html(" "); toggleControls(true); - }).always(function () { + }).fail(function () { $(group).removeAttr('disabled'); }); }).fail(function () {