From bca2d4adc1dac2504819c539e07e5e0fad693b4a Mon Sep 17 00:00:00 2001 From: Hilda Stastna Date: Fri, 18 May 2018 17:43:50 +0200 Subject: [PATCH] Add Search to Currencies' drop down when adding/editing Chargeback Rate related task: https://bugzilla.redhat.com/show_bug.cgi?id=1498951 --- app/views/chargeback/_cb_rate_edit.html.haml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/views/chargeback/_cb_rate_edit.html.haml b/app/views/chargeback/_cb_rate_edit.html.haml index 53b2265c806..83caeb86c6e 100644 --- a/app/views/chargeback/_cb_rate_edit.html.haml +++ b/app/views/chargeback/_cb_rate_edit.html.haml @@ -26,7 +26,11 @@ .col-md-8 = select_tag("currency", options_for_select(currency, @edit[:new][:currency]), - "data-miq_observe" => {:url => url}.to_json) + "data-live-search" => "true", + "class" => "selectpicker") + :javascript + miqInitSelectPicker(); + miqSelectPickerEvent("currency", "#{url}"); %h3 = _('Rate Details')