From ce165e11fb28855d395babcfaf6db61bf88e65ba Mon Sep 17 00:00:00 2001 From: Marc Date: Sun, 19 Apr 2015 21:46:14 +0200 Subject: [PATCH] Some small adjustments and fixes --- .../static/js/customControl.js | 3 --- .../octoprint_customControl_settings.jinja2 | 18 +++++++++--------- 2 files changed, 9 insertions(+), 12 deletions(-) diff --git a/octoprint_customControl/static/js/customControl.js b/octoprint_customControl/static/js/customControl.js index 02f5aaa..ffcde28 100644 --- a/octoprint_customControl/static/js/customControl.js +++ b/octoprint_customControl/static/js/customControl.js @@ -94,8 +94,6 @@ else { control.template = ko.observable(control.template); control.regex = ko.observable(control.regex); - - control.output = ko.computed(function () { return control.template(); }); } } @@ -108,7 +106,6 @@ control.layout = ko.observable("vertical"); } else { - control.name = ko.observable(control.name); control.children = ko.observableArray(self._processControls(control, control.children)); if (!control.hasOwnProperty("layout") || !(control.layout == "vertical" || control.layout == "horizontal" || control.layout == "horizontal_grid")) control.layout = ko.observable("vertical"); diff --git a/octoprint_customControl/templates/octoprint_customControl_settings.jinja2 b/octoprint_customControl/templates/octoprint_customControl_settings.jinja2 index 00bd48f..04e1ebd 100644 --- a/octoprint_customControl/templates/octoprint_customControl_settings.jinja2 +++ b/octoprint_customControl/templates/octoprint_customControl_settings.jinja2 @@ -69,14 +69,14 @@ - - - \ No newline at end of file