diff options
author | Adam Young <ayoung@redhat.com> | 2011-01-29 22:55:08 -0500 |
---|---|---|
committer | Endi S. Dewata <edewata@redhat.com> | 2011-01-29 23:16:08 -0500 |
commit | de28abc236625e48b6027c5229c56998a21bcc39 (patch) | |
tree | 35d5633f11d6c3d487f02e095a88d825e1e03aaa | |
parent | f5e6d0191607f832e0d76b0807ccabf86150dd91 (diff) | |
download | freeipa.git-de28abc236625e48b6027c5229c56998a21bcc39.tar.gz freeipa.git-de28abc236625e48b6027c5229c56998a21bcc39.tar.xz freeipa.git-de28abc236625e48b6027c5229c56998a21bcc39.zip |
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
-rw-r--r-- | 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 047c75f6..ebd3cfef 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'})). |