cockpit/js/instance.js in cpee-2.0.23 vs cockpit/js/instance.js in cpee-2.0.24

- old
+ new

@@ -89,11 +89,10 @@ $("button[name=loadmodeltype]").click(function(e){new CustomMenu(e).menu($('#modeltypes'),load_modeltype, $("button[name=loadmodeltype]")); }); $("button[name=savetestsetfile]").click(function(){ save_testsetfile(); }); $("button[name=savesvgfile]").click(function(){ save_svgfile(); }); $("button[name=state_start]").click(function(){ $(this).parent().find('button').attr("disabled","disabled");start_instance(); }); $("button[name=state_stop]").click(function(){ $(this).parent().find('button').attr("disabled","disabled");stop_instance(); }); - $("button[name=state_replay]").click(function(){ $(this).parent().find('button').attr("disabled","disabled");replay_instance(); }); $("button[name=state_abandon]").click(function(){ aba_instance(); }); $("input[name=votecontinue]").click(check_subscription); $("input[name=testsetfile]").change(load_testsetfile_after); $("input[name=modelfile]").change(load_modelfile_after); @@ -699,23 +698,20 @@ var but = ""; if (notification == "ready" || notification == "stopped") { $('#state_extended').show(); $("button[name=state_start]").show(); $("button[name=state_stop]").hide(); - $("button[name=state_replay]").show(); $("button[name=state_abandon]").show(); } else if (notification == "running") { $('#state_extended').hide(); $("button[name=state_start]").hide(); $("button[name=state_stop]").show(); - $("button[name=state_replay]").hide(); $("button[name=state_abandon]").hide(); } else { $('#state_extended').hide(); $("button[name=state_start]").hide(); $("button[name=state_stop]").hide(); - $("button[name=state_replay]").hide(); $("button[name=state_abandon]").hide(); } // disable all input, also check themes format_visual_forms(); @@ -776,18 +772,9 @@ var url = $('body').attr('current-instance'); $.ajax({ type: "PUT", url: url + "/properties/state/", data: ({value: "running"}), - error: report_failure - }); -}// }}} -function replay_instance() {// {{{ - var url = $('body').attr('current-instance'); - $.ajax({ - type: "PUT", - url: url + "/properties/state/", - data: ({value: "replaying"}), error: report_failure }); }// }}} function aba_instance() {// {{{ monitor_instance_state_change('abandoned');