summaryrefslogtreecommitdiffstats
path: root/install/ui/search.js
diff options
context:
space:
mode:
Diffstat (limited to 'install/ui/search.js')
-rw-r--r--install/ui/search.js21
1 files changed, 12 insertions, 9 deletions
diff --git a/install/ui/search.js b/install/ui/search.js
index bee55c067..454ecf453 100644
--- a/install/ui/search.js
+++ b/install/ui/search.js
@@ -86,6 +86,17 @@ IPA.search_facet = function(spec) {
that.table.refresh = function() {
that.refresh();
};
+
+ that.table.load = function(result) {
+ that.table.empty();
+
+ for (var i = 0; i<result.length; i++) {
+ var record = that.table.get_record(result[i], 0);
+ that.table.add_record(record);
+ }
+
+ that.table.unselect_all();
+ };
}
that.create_content = function(container) {
@@ -224,13 +235,7 @@ IPA.search_facet = function(spec) {
};
function load(result) {
-
- that.table.empty();
-
- for (var i = 0; i<result.length; i++) {
- var record = that.table.get_record(result[i], 0);
- that.table.add_record(record);
- }
+ that.table.load(result);
}
that.load = spec.load || load;
@@ -245,8 +250,6 @@ IPA.search_facet = function(spec) {
that.search_refresh = function(entity){
- $('input[type=checkbox]',that.table.thead).removeAttr("checked");
-
function on_success(data, text_status, xhr) {
that.load(data.result.result);