summaryrefslogtreecommitdiffstats
path: root/install/ui/src/freeipa/aci.js
diff options
context:
space:
mode:
authorPetr Vobornik <pvoborni@redhat.com>2014-02-14 18:55:26 +0100
committerPetr Vobornik <pvoborni@redhat.com>2014-04-03 12:40:37 +0200
commitaadde0f849bc7f129ef5bfdd96391ebeee273829 (patch)
tree2578a9895d5141dc43c4c61a43495d0a5e164567 /install/ui/src/freeipa/aci.js
parent0d05a50e19b71cade636d9ca4882e453f614a78c (diff)
downloadfreeipa-aadde0f849bc7f129ef5bfdd96391ebeee273829.tar.gz
freeipa-aadde0f849bc7f129ef5bfdd96391ebeee273829.tar.xz
freeipa-aadde0f849bc7f129ef5bfdd96391ebeee273829.zip
webui: replace widget's hidden property with visible
Hidden was used only in ACI. There is no reason to have two properties which are negations of each other. Reviewed-By: Adam Misnyovszki <amisnyov@redhat.com>
Diffstat (limited to 'install/ui/src/freeipa/aci.js')
-rw-r--r--install/ui/src/freeipa/aci.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/install/ui/src/freeipa/aci.js b/install/ui/src/freeipa/aci.js
index 0615184c0..e26ecd27d 100644
--- a/install/ui/src/freeipa/aci.js
+++ b/install/ui/src/freeipa/aci.js
@@ -756,7 +756,7 @@ aci.permission_target_widget = function(spec) {
that.type_select = IPA.select_widget({
entity: that.entity,
name: 'type',
- hidden: true,
+ visible: false,
options: types
});
that.widgets.add_widget(that.type_select);
@@ -764,21 +764,21 @@ aci.permission_target_widget = function(spec) {
that.ipapermlocation_text = IPA.text_widget({
entity: that.entity,
name: 'ipapermlocation',
- hidden: true
+ visible: false
});
that.widgets.add_widget(that.ipapermlocation_text);
that.extratargetfilter_text = IPA.multivalued_widget({
entity: that.entity,
name: 'extratargetfilter',
- hidden: true
+ visible: false
});
that.widgets.add_widget(that.extratargetfilter_text);
that.ipapermtarget_text = IPA.text_widget({
entity: that.entity,
name: 'ipapermtarget',
- hidden: true
+ visible: false
});
that.widgets.add_widget(that.ipapermtarget_text);
@@ -799,14 +799,14 @@ aci.permission_target_widget = function(spec) {
entity: that.entity,
name: 'attrs',
object_type: types[0].name,
- hidden: true
+ visible: false
});
that.widgets.add_widget(that.attribute_table);
that.attribute_multivalued = IPA.multivalued_widget({
entity: that.entity,
name: 'attrs_multi',
- hidden: true
+ visible: false
});
that.widgets.add_widget(that.attribute_multivalued);
};
@@ -941,7 +941,7 @@ aci.permission_target_policy = function (spec) {
var enabled = !(managed_f && that.managed) && visible && !that.system;
field.set_enabled(enabled);
field.set_required(visible && target_info.required);
- widget.hidden = !visible;
+ widget.set_visible(visible);
};
that.target_mapping = {