From 155b7c8a9b5b1f62f92b5220f6ae5beb17035737 Mon Sep 17 00:00:00 2001 From: Zubair Quraishi Date: Wed, 19 Jul 2023 07:33:40 +0100 Subject: [PATCH] cleanup --- src/runtimePipelineYazzUiMethods.js | 38 +++++++---------------------- 1 file changed, 9 insertions(+), 29 deletions(-) diff --git a/src/runtimePipelineYazzUiMethods.js b/src/runtimePipelineYazzUiMethods.js index 94122855e..7fecd709a 100644 --- a/src/runtimePipelineYazzUiMethods.js +++ b/src/runtimePipelineYazzUiMethods.js @@ -3497,7 +3497,7 @@ ${eventMessage.code} return {} `}) - + props.push({ id: "show", name: "Show form()", @@ -3539,48 +3539,28 @@ ${eventMessage.code} return [] }, selectForm: function ( formId , showProps ) { - /* - ________________________________________ - | | - | | - | | - |______________________________________| - - TO BE FILLED IN - - __________ - | Params | - | |______________________________________________________________ - | - | NONE - |________________________________________________________________________ */ let mm = this - - mm.active_component_index = null - mm.model.app_selected = false - mm.properties = mm.getFormProperties(formId) - - mm.active_form = formId + mm.active_component_index = null + mm.model.app_selected = false + mm.properties = mm.getFormProperties( formId ) + mm.active_form = formId mm.refresh ++ if ( mm.model.forms[ formId ].form_activate && (!mm.design_mode)) { - - - if (!isValidObject(this.args)) { + //TODO + // WHY does this ever get called? remove it when you can!!!! mm.args = mm.model } - let args = mm.args - let app = mm.model - let crt = mm.model.forms[formId].form_activate + let formActivateCode = mm.model.forms[formId].form_activate let formEvent = { type: "form_event", form_name: formId, - code: crt, + code: formActivateCode, sub_type: "activate" } mm.processControlEvent(formEvent)