From c4d2db694f2ea8ffecf325c5477465d0d49a6061 Mon Sep 17 00:00:00 2001 From: dcore94 Date: Fri, 17 Mar 2023 12:16:30 +0100 Subject: [PATCH] improvements --- ccp/js/methodeditorcontroller2.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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")