cockpit/js/instance.js in cpee-2.0.16 vs cockpit/js/instance.js in cpee-2.0.17

- old
+ new

@@ -835,10 +835,12 @@ $('testset > description > *',testset).remove(); $('testset > description',testset).append($('testset > dslx',testset).children()); $('testset > transformation',testset).remove(); $('testset > dsl',testset).remove(); $('testset > dslx',testset).remove(); + $('testset > attributes > uuid',testset).remove(); + $('testset > attributes > theme',testset).remove(); testset.append($X('<transformation xmlns="http://cpee.org/ns/properties/2.0"><description type="copy"/><dataelements type="none"/><endpoints type="none"/></transformation>')); var name = $('testset > attributes > info',testset).text(); $('[xmlns]',testset).each((idx,ele) => { if (ele.parentNode.namespaceURI == ele.getAttribute('xmlns')) { ele.removeAttribute('xmlns'); @@ -885,13 +887,11 @@ }); $.ajax({ type: "GET", url: url + "/properties/attributes/info/", success: function(res){ - var name = $(res.documentElement).text(); - - $('#savesvgfile').attr('download',name + '.svg'); + $('#savesvgfile').attr('download',res + '.svg'); $('#savesvgfile').attr('href','data:application/xml;charset=utf-8;base64,' + $B64(gc.serializeXML())); document.getElementById('savesvgfile').click(); }, error: report_failure }); @@ -910,9 +910,10 @@ tset.append($("testset > dataelements",testset)); tset.append($("testset > endpoints",testset)); tset.append($("testset > attributes",testset)); tset.append($("testset > description",testset)); tset.append($("testset > transformation",testset)); + $('testset > attributes > info',tset).remove(); promises.push( $.ajax({ type: "GET", url: url + "/notifications/subscriptions/",