From bde9959091d263402c2016c183f8617dea488cc0 Mon Sep 17 00:00:00 2001 From: Rob Crittenden Date: Thu, 27 Mar 2008 09:54:41 -0400 Subject: When getting members let user indicate what type of member they want. The memberOf attribute includes members that are directly in the group via the "member" attribute and those that are included as a result of being in a group that is in the group. The UI needs to be able to distinguish between the two. 438706 --- ipa-server/ipa-gui/ipagui/static/javascript/dynamicedit.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'ipa-server/ipa-gui/ipagui/static/javascript') diff --git a/ipa-server/ipa-gui/ipagui/static/javascript/dynamicedit.js b/ipa-server/ipa-gui/ipagui/static/javascript/dynamicedit.js index 4d73711e6..b670c457f 100644 --- a/ipa-server/ipa-gui/ipagui/static/javascript/dynamicedit.js +++ b/ipa-server/ipa-gui/ipagui/static/javascript/dynamicedit.js @@ -88,9 +88,22 @@ var dn_to_member_div_id = new Hash(); */ function renderMemberInfo(newdiv, info) { if (info.type == "user") { + bold = document.createElement('b'); + bold.appendChild(document.createTextNode( + info.name + " " + info.descr + " ")); + newdiv.appendChild(bold); + } else if (info.type == "iuser") { newdiv.appendChild(document.createTextNode( info.name + " " + info.descr + " ")); } else if (info.type == "group") { + ital = document.createElement('i'); + bold = document.createElement('b'); + ital.appendChild(bold); + bold.appendChild(document.createTextNode( + info.name + " " + + info.descr + " ")); + newdiv.appendChild(ital); + } else if (info.type == "igroup") { ital = document.createElement('i'); ital.appendChild(document.createTextNode( info.name + " " + -- cgit