summaryrefslogtreecommitdiffstats
path: root/install/ui/widget.js
diff options
context:
space:
mode:
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() {