cockpit/js/instance.js in cpee-1.3.174 vs cockpit/js/instance.js in cpee-1.3.175
- old
+ new
@@ -608,10 +608,11 @@
},
error: report_failure
});
load_testset_dataelements(url,testset);
+ load_testset_attributes(url,testset);
load_testset_endpoints(url,testset);
load_testset_pos(url,testset);
if ($("testset > transformation",testset).length > 0) {
var ser = '';
@@ -780,9 +781,23 @@
});
var val = "<content>" + ser + "</content>";
$.ajax({
type: "PUT",
url: url + "/properties/values/dataelements",
+ data: ({content: val}),
+ error: report_failure
+ });
+}// }}}
+function load_testset_attributes(url,testset) {// {{{
+ if ($("testset > attributes",testset).length == 0) { return; }
+ var ser = '';
+ $("testset > attributes > *",testset).each(function(){
+ ser += $(this).serializeXML() + "\n";
+ });
+ var val = "<content>" + ser + "</content>";
+ $.ajax({
+ type: "PUT",
+ url: url + "/properties/values/attributes",
data: ({content: val}),
error: report_failure
});
}// }}}
function load_testset_endpoints(url,testset) {// {{{