summaryrefslogtreecommitdiffstats
path: root/install/ui/search.js
diff options
context:
space:
mode:
authorPetr Vobornik <pvoborni@redhat.com>2011-08-18 13:46:44 +0200
committerEndi S. Dewata <edewata@redhat.com>2011-08-19 20:54:22 +0000
commit4a72593893f9037aafb8549e342c14f8bf34e1ae (patch)
treeac04b6f6fc8f70ee696faa67f5f6e88df5631307 /install/ui/search.js
parent92780658b8149b87f1c0cab373b814c09de68975 (diff)
downloadfreeipa-4a72593893f9037aafb8549e342c14f8bf34e1ae.tar.gz
freeipa-4a72593893f9037aafb8549e342c14f8bf34e1ae.tar.xz
freeipa-4a72593893f9037aafb8549e342c14f8bf34e1ae.zip
Uncheck checkboxes in association after deletion
https://fedorahosted.org/freeipa/ticket/1639
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);