app/views/naf/machine_runners/index.html.erb in naf-2.1.9 vs app/views/naf/machine_runners/index.html.erb in naf-2.1.10

- old
+ new

@@ -27,10 +27,12 @@ jQuery(document).delegate('.wind_down_all', "click", function() { var answer = confirm("You are winding down all runners. Are you sure you want to do this?"); if (!answer) { return false; } - var url = '/job_system/machine_runner_invocations/'; + var str = window.location.pathname; + var sub_path = str.substring(0, str.indexOf("job_system")); + var url = sub_path + 'job_system/machine_runner_invocations/'; jQuery.ajax({ url: url, type: 'POST', dataType: 'json', data: { "machine_runner_invocation[request_to_wind_down]": 1, "option": "all", "_method": "put" },