summaryrefslogtreecommitdiffstats
path: root/install/ui/policy.js
diff options
context:
space:
mode:
authorMartin Kosek <mkosek@redhat.com>2011-02-16 14:26:35 +0100
committerAdam Young <ayoung@redhat.com>2011-02-18 09:49:37 -0500
commitb7700ea815222b4de80741ad77b31707051300bd (patch)
tree4c92ba518468af34f9587131c8f4de3bb13613e3 /install/ui/policy.js
parent27532f54687297e5dfa7d66503f22186d7fc3237 (diff)
downloadfreeipa-b7700ea815222b4de80741ad77b31707051300bd.tar.gz
freeipa-b7700ea815222b4de80741ad77b31707051300bd.tar.xz
freeipa-b7700ea815222b4de80741ad77b31707051300bd.zip
Remove WebUI identifiers from global namespace
Many WebUI identifiers were defined in a global namespace. This is not a good programming practice and may result in name clashes, for example with other libraries. This patch moves these variables to IPA namespace or its sub-namespaces, when meaningful. https://fedorahosted.org/freeipa/ticket/212
Diffstat (limited to 'install/ui/policy.js')
-rw-r--r--install/ui/policy.js15
1 files changed, 14 insertions, 1 deletions
diff --git a/install/ui/policy.js b/install/ui/policy.js
index f7e4761a3..8e6274122 100644
--- a/install/ui/policy.js
+++ b/install/ui/policy.js
@@ -429,9 +429,22 @@ IPA.records_facet = function (spec){
function generate_tr(thead, tbody, result){
+ function generate_checkbox_td(tr, pkey) {
+ var checkbox = $('<input />', {
+ name: pkey,
+ title: pkey,
+ type: 'checkbox',
+ 'class': 'search-selector'
+ });
+ var td = $('<td></td>');
+
+ td.append(checkbox);
+ tr.append(td);
+ }
+
var tr = $('<tr></tr>').appendTo(tbody);
- search_generate_checkbox_td(tr, /*pkey_value*/ '');
+ generate_checkbox_td(tr, /*pkey_value*/ '');
//TODO get this fixed on the back end. For now, workaround