https://fedorahosted.org/freeipa/ticket/878
From cc8285605650285a2f6eaa995d56d87722fef7a5 Mon Sep 17 00:00:00 2001
From: Adam Young <ayo...@redhat.com>
Date: Sat, 29 Jan 2011 22:55:08 -0500
Subject: [PATCH] delegation work around

Since the delegation enityt is using membergroup as the property name at this stage, we can use that as the value until the pluing is consistant
---
 install/ui/aci.js |   13 ++++++++++---
 1 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/install/ui/aci.js b/install/ui/aci.js
index 047c75f66a5168188db038d9afc438f9e47f88cf..ebd3cfeffd803199b268e7596c73d0a274202588 100644
--- a/install/ui/aci.js
+++ b/install/ui/aci.js
@@ -245,10 +245,11 @@ IPA.entity_select_widget = function(spec){
             var entities = result.result.result;
             for (var i =0; i < result.result.count; i +=1){
                 var option =
-                    that.entity_select.append($('<option/>',{
+                    $('<option/>',{
                         text:entities[i].cn[0],
                         value:entities[i].cn[0]
-                    }));
+                    }).
+                    appendTo(that.entity_select);
                 if (value === entities[i].cn[0]){
                     option.attr('selected','selected');
                 }
@@ -302,6 +303,11 @@ IPA.entity_select_widget = function(spec){
         populate_select(that.values[0]);
 
     };
+
+    that.is_dirty = function(){
+        return (that.save()[0] !== that.values[0]);
+    };
+
     that.load = function(record){
         var value = record[that.name];
         if (value instanceof Array) {
@@ -898,7 +904,8 @@ IPA.entity_factories.delegation =  function() {
                         custom_input(IPA.entity_select_widget(
                             {name:'group', entity:'group'})).
                         custom_input(IPA.entity_select_widget(
-                            {name:'memberof', entity:'group', join: true})).
+                            {name:'membergroup', label:"Member Group",
+                             entity:'group', join: true})).
                         custom_input(
                             IPA.rights_widget({
                                 id:'delegation_rights'})).
-- 
1.7.3.5

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

Reply via email to