From acf5f9cad7438268148dff6c6b74d8c63048409a Mon Sep 17 00:00:00 2001 From: Adam Young Date: Wed, 13 Oct 2010 13:07:43 -0400 Subject: multivalue fixes metadata for phone numbers test date for users Undo works for multivalue JQuery UI buttons have custom classes inputs/fields are now managed inside of objects removed the use of .call. as it was confusing the issue of mismatched parameter lists. Fixed the parameter lists, too. --- install/static/search.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'install/static/search.js') diff --git a/install/static/search.js b/install/static/search.js index f968e91c..91ee1bd8 100644 --- a/install/static/search.js +++ b/install/static/search.js @@ -34,7 +34,7 @@ function search_create(obj_name, scl, container) $.bbq.pushState(state); }; - function delete_on_click() { + function delete_on_click_outer() { var delete_list = []; var delete_dialog = $('
', { title: ipa_messages.button.delete, @@ -94,10 +94,12 @@ function search_create(obj_name, scl, container) var jobj = div.children().last(); jobj.append(''); jobj.children().last().attr('name', 'search-' + obj_name + '-filter') - jobj.append(''); - jobj.children().last().click(find_on_click); - jobj.append(''); - jobj.children().last().click(delete_on_click); + ipa_make_button('ui-icon-search',ipa_messages.button.find). + click(find_on_click).appendTo(jobj); + + ipa_make_button('ui-icon-trash',ipa_messages.button.delete). + click(delete_on_click_outer).appendTo(jobj); + div.append(''); var search_results = $('
', { -- cgit