Hello,

This patch addresses ticket https://fedorahosted.org/freeipa/ticket/3793.

-- 
Regards,

Ana Krivokapic
Associate Software Engineer
FreeIPA team
Red Hat Inc.

From a5c286306cd0a4df596fcb8784de88545a51b043 Mon Sep 17 00:00:00 2001
From: Ana Krivokapic <akriv...@redhat.com>
Date: Wed, 17 Jul 2013 21:13:42 +0200
Subject: [PATCH] Honor 'enabled' option for widgets.

https://fedorahosted.org/freeipa/ticket/3793
---
 install/ui/src/freeipa/widget.js | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/install/ui/src/freeipa/widget.js b/install/ui/src/freeipa/widget.js
index 06fcef563ca416e6e3e1cc454f2e1dd665c68f26..2d27b1df55d922cd04360f625321402b6a1ced9c 100644
--- a/install/ui/src/freeipa/widget.js
+++ b/install/ui/src/freeipa/widget.js
@@ -98,6 +98,8 @@ IPA.input_widget = function(spec) {
     that.writable = spec.writable === undefined ? true : spec.writable;
     that.read_only = spec.read_only;
     that.hidden = spec.hidden;
+    that.enabled = spec.enabled === undefined ? true : spec.enabled;
+    that.disabled = !that.enabled;
 
     //events
     //each widget can contain several events
-- 
1.8.1.4

_______________________________________________
Freeipa-devel mailing list
Freeipa-devel@redhat.com
https://www.redhat.com/mailman/listinfo/freeipa-devel

Reply via email to