From 4dadc8ac7b6aba1b23ebe3fdc5371ebf5a08fb08 Mon Sep 17 00:00:00 2001 From: Elena.Budnik Date: Mon, 21 Sep 2020 12:45:39 +0200 Subject: [PATCH] rm 8444 + --- generic_data/Functions/functions.xml | 9 +++++---- js/app/models/Function.js | 3 ++- js/app/views/CalculatorUI.js | 6 +++++- 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/generic_data/Functions/functions.xml b/generic_data/Functions/functions.xml index c4a68f1..f08fbb2 100644 --- a/generic_data/Functions/functions.xml +++ b/generic_data/Functions/functions.xml @@ -97,15 +97,16 @@ - - + + xyz_sm (Re), dipole tilt angle (deg) + ,tilt_angle_60 Distance (Re) from s/c location to Fairfield1970 model neutral sheet position.<br/> dZ = fairfield70(xyz_sm, tilt_angle),<br/> xyz_sm is the s/c SM coordinates (Re) and tilt angle is in degrees.<br/> Valid for y_sm < 15 Re. - fairfield70 + fairfield70 - + Distance (Re) from s/c location to Fairfield1980 model neutral sheet position.<br/> diff --git a/js/app/models/Function.js b/js/app/models/Function.js index 0d4ebf0..9de0131 100644 --- a/js/app/models/Function.js +++ b/js/app/models/Function.js @@ -18,7 +18,8 @@ Ext.define('amdaModel.Function', { {name: 'args', mapping: '@args', type: 'int', defaultValue: 1}, {name: 'argv', mapping: '@argv', type: 'string'}, {name: 'prompt', type: 'string', defaultValue: ''}, - {name: 'default_args', type: 'string', defaultValue: ''}, + {name: 'prompt_param', type: 'string', defaultValue: ''}, + {name: 'default_args', type: 'string', defaultValue: ''}, {name: 'info_brief', type: 'string', defaultValue: ''} ], diff --git a/js/app/views/CalculatorUI.js b/js/app/views/CalculatorUI.js index 9ab8925..f1d18d0 100644 --- a/js/app/views/CalculatorUI.js +++ b/js/app/views/CalculatorUI.js @@ -176,10 +176,13 @@ Ext.define('amdaUI.CalculatorUI', { var afterParamsText = text + ")"; //TODO: more than one args and prompt this.processFormula(sel, currentBtn, params, afterParamsText); - } }, this); } else { + if ( currentBtn.initialConfig.prompt_param != "" ) { + console.log(currentBtn.initialConfig); + Ext.Msg.alert('Input Parameters', currentBtn.initialConfig.prompt_param); + } this.processFormula(sel, currentBtn, params, ")"); }// endif prompt }, @@ -473,6 +476,7 @@ Ext.define('amdaUI.CalculatorUI', { args: f.get('args'), defaultArgs: f.get('default_args'), prompt: f.get('prompt'), + prompt_param: f.get('prompt_param'), tooltip: f.get('info_brief'), scope: this, handler: function (b, e) { -- libgit2 0.21.2