cockpit/js/instance.js in cpee-2.0.22 vs cockpit/js/instance.js in cpee-2.0.23
- old
+ new
@@ -627,13 +627,15 @@
}
});
}// }}}
function monitor_instance_transformation() {// {{{
var url = $('body').attr('current-instance');
+ console.log('hallo');
+ console.log(url);
$.ajax({
type: "GET",
- url: url + "/properties/attributes/modeltype",
+ url: url + "/properties/attributes/modeltype/",
success: function(res){
$("#currentmodel").text(res);
},
error: function() {
$("#currentmodel").text('???');
@@ -772,39 +774,39 @@
function start_instance() {// {{{
var url = $('body').attr('current-instance');
$.ajax({
type: "PUT",
- url: url + "/properties/state",
+ 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",
+ url: url + "/properties/state/",
data: ({value: "replaying"}),
error: report_failure
});
}// }}}
function aba_instance() {// {{{
monitor_instance_state_change('abandoned');
var url = $('body').attr('current-instance');
$.ajax({
type: "PUT",
- url: url + "/properties/state",
+ url: url + "/properties/state/",
data: ({value: "abandoned"}),
error: report_failure
});
}// }}}
function stop_instance() {// {{{
var url = $('body').attr('current-instance');
$.ajax({
type: "PUT",
- url: url + "/properties/state",
+ url: url + "/properties/state/",
data: ({value: "stopping"}),
error: report_failure
});
}// }}}
@@ -949,11 +951,11 @@
url: url + "/properties/state/",
dataType: "text",
success: function(res){
$.ajax({
type: "PUT",
- url: url + "/properties/state",
+ url: url + "/properties/state/",
data: ({value: res}),
error: report_failure,
success: function(res){
if (exec) start_instance();
}
@@ -1051,10 +1053,10 @@
dataType: 'xml',
url: $('body').attr('current-templates') + "." + name + ".xml",
success: function(res){
$.ajax({
type: "PUT",
- url: url + "/properties/attributes/modeltype",
+ url: url + "/properties/attributes/modeltype/",
data: ({value: name}),
success: function(){
set_testset(res,false);
},
error: report_failure