summaryrefslogtreecommitdiffstats
path: root/install/ui/widget.js
diff options
context:
space:
mode:
authorEndi Sukma Dewata <edewata@redhat.com>2011-11-16 21:07:20 -0600
committerEndi S. Dewata <edewata@redhat.com>2011-12-06 22:08:16 +0000
commit2203bb650ce4730832cb9799be0ea1b855c07170 (patch)
treec0ae64bfe5ff9a39f95ab6cf86720316cf2885a2 /install/ui/widget.js
parentcaa9d52666e5beb7321dc6c80820eeacca356077 (diff)
downloadfreeipa.git-2203bb650ce4730832cb9799be0ea1b855c07170.tar.gz
freeipa.git-2203bb650ce4730832cb9799be0ea1b855c07170.tar.xz
freeipa.git-2203bb650ce4730832cb9799be0ea1b855c07170.zip
Added HBAC Test page.
This is the initial implementation of HBAC Test page. Currently it can select user, source/target group, service, rules, and execute the test. Other functionalities to be implemented include the search filter, external users/hosts, back/next buttons, validation, styling, and internalization. Ticket #388
Diffstat (limited to 'install/ui/widget.js')
-rw-r--r--install/ui/widget.js10
1 files changed, 8 insertions, 2 deletions
diff --git a/install/ui/widget.js b/install/ui/widget.js
index 221adb0d..63b2c549 100644
--- a/install/ui/widget.js
+++ b/install/ui/widget.js
@@ -1257,7 +1257,15 @@ IPA.table_widget = function (spec) {
$('input[name="'+that.name+'"]', that.thead).attr('checked', false).
attr('title', IPA.messages.search.select_all);
$('input[name="'+that.name+'"]', that.tbody).attr('checked', false);
+ that.select_changed();
+ };
+ that.set_values = function(values) {
+ $('input[name="'+that.name+'"]', that.tbody).attr('checked', false);
+ for (var i=0; values && i<values.length; i++) {
+ var value = values[i];
+ $('input[name="'+that.name+'"][value="'+value+'"]', that.tbody).attr('checked', true);
+ }
that.select_changed();
};
@@ -1274,8 +1282,6 @@ IPA.table_widget = function (spec) {
var record = that.get_record(result, i);
that.add_record(record);
}
-
- that.unselect_all();
};
that.save = function() {