From eff4e748872410a57c169769e97e4392b0f83869 Mon Sep 17 00:00:00 2001 From: Wieland Lindenthal Date: Mon, 7 Mar 2011 17:11:32 +0100 Subject: [PATCH] Reworking remove buttons of filters using hidden field for data storage and siemens styles for layout. --- assets/images/close.gif | Bin 0 -> 69 bytes assets/javascripts/reporting/filters.js | 2 +- assets/stylesheets/reporting.css | 22 +++++++++++++++++----- lib/widget/filters/remove_button.rb | 6 ++++-- 4 files changed, 22 insertions(+), 8 deletions(-) create mode 100755 assets/images/close.gif diff --git a/assets/images/close.gif b/assets/images/close.gif new file mode 100755 index 0000000000000000000000000000000000000000..50709cf5b7a4df8eae15480a764be196fc4374ba GIT binary patch literal 69 zcmZ?wbhEHb6k-r!XkcKN$-r>;?p?*7EDRu^10p~&3`{aT{VPwuwQ8LR "25px" do - tag :input, :id => "rm_#{filter_class.underscore_name}", - :name => "fields[]", :type => "button", :value => "", + hidden_field = tag :input, :id => "rm_#{filter_class.underscore_name}", + :name => "fields[]", :type => "hidden", :value => "" + button = tag :input, :type => "button", :value => "", :class => "icon filter_rem icon-filter-rem" + content_tag(:div, hidden_field + button, :id => "rm_box_#{filter_class.underscore_name}", :class => "remove-box") end end end