diff options
author | Adam Young <ayoung@redhat.com> | 2011-03-30 20:54:34 -0400 |
---|---|---|
committer | Adam Young <ayoung@redhat.com> | 2011-03-31 17:29:33 -0400 |
commit | ef57ee0d936a910407a940273f1dbd9ff084fffa (patch) | |
tree | 1a38144aaf7e550e44feb637ee4c736c788b87d1 /install/ui/search.js | |
parent | 4270e26adb56b6d1b7a9e80433581b82519d9eec (diff) | |
download | freeipa-ef57ee0d936a910407a940273f1dbd9ff084fffa.tar.gz freeipa-ef57ee0d936a910407a940273f1dbd9ff084fffa.tar.xz freeipa-ef57ee0d936a910407a940273f1dbd9ff084fffa.zip |
default all false
no longer default to all: true for searches, only specify it for user searches
Diffstat (limited to 'install/ui/search.js')
-rw-r--r-- | install/ui/search.js | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/install/ui/search.js b/install/ui/search.js index 9d22dfcc4..dc347aa39 100644 --- a/install/ui/search.js +++ b/install/ui/search.js @@ -32,6 +32,7 @@ IPA.search_widget = function (spec) { that.entity_name = spec.entity_name; that.facet = spec.facet; + that.search_all = spec.search_all || false; that.create = function(container) { @@ -269,7 +270,7 @@ IPA.search_widget = function (spec) { var filter = $.bbq.getState(that.entity_name + '-filter', true) || ''; IPA.cmd( - 'find', [filter], {all: true}, on_success, on_error, + 'find', [filter], {all: that.search_all}, on_success, on_error, that.entity_name); }; @@ -290,6 +291,7 @@ IPA.search_facet = function(spec) { that.entity_name = spec.entity_name; that.columns = []; that.columns_by_name = {}; + that.search_all = spec.search_all || false; that.__defineGetter__('entity_name', function() { return that._entity_name; @@ -356,10 +358,12 @@ IPA.search_facet = function(spec) { that.facet_init(); that.table = IPA.search_widget({ - 'id': that.entity_name+'-search', - 'name': 'search', 'label': IPA.metadata.objects[that.entity_name].label, - 'entity_name': that.entity_name, - 'facet': that + id: that.entity_name+'-search', + name: 'search', + label: IPA.metadata.objects[that.entity_name].label, + entity_name: that.entity_name, + facet: that, + search_all: that.search_all }); for (var i=0; i<that.columns.length; i++) { |