summaryrefslogtreecommitdiffstats
path: root/install/static/widget.js
diff options
context:
space:
mode:
Diffstat (limited to 'install/static/widget.js')
-rwxr-xr-xinstall/static/widget.js10
1 files changed, 9 insertions, 1 deletions
diff --git a/install/static/widget.js b/install/static/widget.js
index 429773ef..02759992 100755
--- a/install/static/widget.js
+++ b/install/static/widget.js
@@ -28,10 +28,18 @@ function ipa_widget(spec) {
that.id = spec.id;
that.name = spec.name;
- that.label = spec.label;
+ that.label = spec.label ;
that.read_only = spec.read_only;
that._entity_name = spec.entity_name;
+ if (spec.entity_name && ! spec.label){
+ var param_info = ipa_get_param_info(spec.entity_name, spec.name);
+ if (param_info){
+ that.label = param_info.label;
+ }
+ }
+
+
that.width = spec.width;
that.height = spec.height;