summaryrefslogtreecommitdiffstats
path: root/install/static/details.js
diff options
context:
space:
mode:
authorPavel Zuna <pzuna@redhat.com>2010-10-06 12:01:02 -0400
committerEndi Sukma Dewata <edewata@redhat.com>2010-10-06 17:01:45 -0400
commit127ff317cecc43ebb1f21c6a88bc4d4a7e64ea5b (patch)
treedb627bc6cd27a140868db4a3252c898b58b4b380 /install/static/details.js
parent8a2ea9a7e0930c0f50c30d9351319e74fe40a327 (diff)
downloadfreeipa-127ff317cecc43ebb1f21c6a88bc4d4a7e64ea5b.tar.gz
freeipa-127ff317cecc43ebb1f21c6a88bc4d4a7e64ea5b.tar.xz
freeipa-127ff317cecc43ebb1f21c6a88bc4d4a7e64ea5b.zip
Fix attribute callbacks on details pages in the webUI.
Ticket #326
Diffstat (limited to 'install/static/details.js')
-rw-r--r--install/static/details.js20
1 files changed, 12 insertions, 8 deletions
diff --git a/install/static/details.js b/install/static/details.js
index f16dc3640..99666b10c 100644
--- a/install/static/details.js
+++ b/install/static/details.js
@@ -79,19 +79,23 @@ function ipa_generate_dl(jobj, id, name, dts)
for (var i = 0; i < dts.length; ++i) {
var label = '';
- if (dts[i][0].indexOf('call_') != 0) {
- var param_info = ipa_get_param_info(obj_name, dts[i][0]);
- if (param_info)
- label = param_info['label'];
- }
+ var param_info = ipa_get_param_info(obj_name, dts[i][0]);
+ if (param_info)
+ label = param_info['label'];
if ((!label) && (dts[i].length > 1))
label = dts[i][1];
+
+ var title = dts[i][0];
+ if (typeof dts[i][2] == 'function')
+ title = 'call_' + dts[i][2].name;
dl.append(
- $('<dt/>',{
- title:dts[i][0],
- html:label+":"})
+ $('<dt></dt>', {
+ title: title,
+ html: label + ':',
+ })
);
}
+
parent.append(dl);
parent.append('<hr/>');
}