diff options
author | Adam Young <ayoung@redhat.com> | 2010-10-13 13:07:43 -0400 |
---|---|---|
committer | Adam Young <ayoung@redhat.com> | 2010-10-15 12:51:30 -0400 |
commit | acf5f9cad7438268148dff6c6b74d8c63048409a (patch) | |
tree | 04b5c2bd2529c68f7ec3cb59bb7f2f0cf19417be /install/static/search.js | |
parent | 538646c04ccbbef8249da3705eb455e63d075589 (diff) | |
download | freeipa-acf5f9cad7438268148dff6c6b74d8c63048409a.tar.gz freeipa-acf5f9cad7438268148dff6c6b74d8c63048409a.tar.xz freeipa-acf5f9cad7438268148dff6c6b74d8c63048409a.zip |
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.
Diffstat (limited to 'install/static/search.js')
-rw-r--r-- | install/static/search.js | 12 |
1 files changed, 7 insertions, 5 deletions
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 = $('<div></div>', { title: ipa_messages.button.delete, @@ -94,10 +94,12 @@ function search_create(obj_name, scl, container) var jobj = div.children().last(); jobj.append('<input type="text" />'); jobj.children().last().attr('name', 'search-' + obj_name + '-filter') - jobj.append('<input type="submit" value="'+ipa_messages.button.find+ '" />'); - jobj.children().last().click(find_on_click); - jobj.append('<input type="submit" value="'+ipa_messages.button.delete+ '" />'); - 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('<span class="search-buttons"></span>'); var search_results = $('<div/>', { |