@inteli.city/node-red-contrib-exec-collection 2.0.1 → 2.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/exec.queue.html +6 -2
- package/package.json +1 -1
package/exec.queue.html
CHANGED
|
@@ -319,9 +319,11 @@ valgrind bash $file
|
|
|
319
319
|
$("#node-input-cmdTemplate").prop("checked",false);
|
|
320
320
|
}
|
|
321
321
|
|
|
322
|
+
var initFormat = this.format || "javascript";
|
|
323
|
+
if (initFormat === "nunjucks") initFormat = "twig";
|
|
322
324
|
this.editor = RED.editor.createEditor({
|
|
323
325
|
id: 'node-input-template-editor',
|
|
324
|
-
mode: 'ace/mode/
|
|
326
|
+
mode: 'ace/mode/' + initFormat,
|
|
325
327
|
value: $("#node-input-template").val()
|
|
326
328
|
});
|
|
327
329
|
|
|
@@ -335,7 +337,9 @@ valgrind bash $file
|
|
|
335
337
|
this.editor.focus();
|
|
336
338
|
|
|
337
339
|
$("#node-input-format").on("change", function() {
|
|
338
|
-
var
|
|
340
|
+
var format = $("#node-input-format").val();
|
|
341
|
+
if (format === "nunjucks") format = "twig";
|
|
342
|
+
var mod = "ace/mode/" + format;
|
|
339
343
|
that.editor.getSession().setMode({
|
|
340
344
|
path: mod,
|
|
341
345
|
v: Date.now()
|