diff options
author | Pavel Zuna <pzuna@redhat.com> | 2011-01-04 15:21:18 -0500 |
---|---|---|
committer | Adam Young <ayoung@redhat.com> | 2011-01-04 21:56:38 -0500 |
commit | 2f2c67cb59f1a797e6f2e0b033cb480489c0df0b (patch) | |
tree | 4dbc3df041b8a1893887f67048fa7f8cf7774e2e /install/static/widget.js | |
parent | d6d579ead469e0b4690d6d1eec0f137dd3c40940 (diff) | |
download | freeipa-2f2c67cb59f1a797e6f2e0b033cb480489c0df0b.tar.gz freeipa-2f2c67cb59f1a797e6f2e0b033cb480489c0df0b.tar.xz freeipa-2f2c67cb59f1a797e6f2e0b033cb480489c0df0b.zip |
Improvements to enrollments in the webUI.
TAKE 1
- Enrollement links in the action panel are now sorted by relationships.
- You can only enroll members.
(The webUI made the impression you can enroll parents as well, but it was
broken.)
- When enrolling new members, you can choose not to display already enrolled
ones. (On by default.)
- Couple cosmetic changes.
Diffstat (limited to 'install/static/widget.js')
-rwxr-xr-x | install/static/widget.js | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/install/static/widget.js b/install/static/widget.js index 4da5df03f..dcc173411 100755 --- a/install/static/widget.js +++ b/install/static/widget.js @@ -1023,6 +1023,23 @@ function ipa_adder_dialog(spec) { value: 'Find' }).appendTo(search_panel); + $('<input/>', { + type: 'checkbox', + name: 'hidememb', + id: 'hidememb', + checked: 'checked', + style: 'margin-left: 5px; vertical-align: middle', + }).appendTo(search_panel); + + var label = $('<label/>', { + 'for': 'hidememb', + style: 'margin-left: 3px', + }); + + label.text('Hide already enrolled.'); + + label.appendTo(search_panel); + var results_panel = $('<div/>', { 'class': 'adder-dialog-results' }).appendTo(that.container); @@ -1141,6 +1158,10 @@ function ipa_adder_dialog(spec) { return that.filter_field.val(); }; + that.get_hide_checkbox = function() { + return that.hide_checkbox.checked; + }; + that.clear_available_values = function() { that.available_table.empty(); }; |