From 9fa543700bd3afbf7f82ec7556b8aefcd94d3acd Mon Sep 17 00:00:00 2001 From: Adam Young Date: Sat, 13 Nov 2010 21:34:31 -0500 Subject: buttons to action panel --- install/static/search.js | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) (limited to 'install/static/search.js') diff --git a/install/static/search.js b/install/static/search.js index e253f78c..d187d602 100644 --- a/install/static/search.js +++ b/install/static/search.js @@ -53,17 +53,20 @@ function ipa_search_widget(spec) { 'click': function() { that.find(container); } }).appendTo(search_filter); - ipa_button({ - 'label': IPA.messages.button.remove, - 'icon': 'ui-icon-trash', - 'click': function() { that.remove(container); } - }).appendTo(search_filter); - - ipa_button({ - 'label': IPA.messages.button.add, - 'icon': 'ui-icon-plus', - 'click': function() { that.add(container); } - }).appendTo(search_filter); + var li = $('
  • ', { + html: ipa_button({ + 'label': IPA.messages.button.remove, + 'icon': 'ui-icon-trash', + 'click': function() { that.remove(container); } + })}); + li.append( + ipa_button({ + 'label': IPA.messages.button.add, + 'icon': 'ui-icon-plus', + 'click': function() { that.add(container); } + }) + ); + li.appendTo($('.action-panel ul')); search_controls.append(''); -- cgit