associate search automatically perfomr the no-args search for enrollment-adder pages

This commit is contained in:
Adam Young 2010-12-02 12:35:37 -05:00 committed by Endi Sukma Dewata
parent c0eb2b60c8
commit 6c2391b6b3

View File

@ -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);
};