From 6c2391b6b3f993c095564f6b76d99cb72ecc07b0 Mon Sep 17 00:00:00 2001 From: Adam Young Date: Thu, 2 Dec 2010 12:35:37 -0500 Subject: associate search automatically perfomr the no-args search for enrollment-adder pages --- install/static/associate.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'install/static/associate.js') diff --git a/install/static/associate.js b/install/static/associate.js index a6edf748..04fc3759 100644 --- a/install/static/associate.js +++ b/install/static/associate.js @@ -159,10 +159,15 @@ function ipa_association_adder_dialog(spec) { } that.adder_dialog_init(); + execute_search(''); + }; that.search = function() { + execute_search(that.get_filter()); + } + function execute_search(filter){ function on_success(data, text_status, xhr) { var results = data.result; that.clear_available_values(); @@ -173,7 +178,6 @@ function ipa_association_adder_dialog(spec) { } } - var filter = that.get_filter(); ipa_cmd('find', [filter], {'all': true}, on_success, null, that.other_entity); }; -- cgit