diff --git a/ccp/js/methodeditorcontroller2.js b/ccp/js/methodeditorcontroller2.js index e2c8cc4..e7c2e9a 100644 --- a/ccp/js/methodeditorcontroller2.js +++ b/ccp/js/methodeditorcontroller2.js @@ -861,7 +861,7 @@ class CCPMethodEditorController extends HTMLElement{ renderInfrastructures(){ return this.#current.links.filter(l=>l.rel === "compatibleWith").map((l, i)=>{ return ` -
+
${l.title} x
@@ -890,11 +890,12 @@ class CCPMethodEditorController extends HTMLElement{ } renderScripts(){ + const index = this.#rootdoc.querySelector("select[name=script-selector]") ? this.#rootdoc.querySelector("select[name=script-selector]").selectedIndex : 0 return this.#current.additionalParameters.parameters.map( (script, i) => { let code = script.value.length ? script.value.join("\r\n") : "" - return ` - + return ` + ` } ).join("\n")