Skip to content

Commit

Permalink
network_prefixes: remove dependent filters
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitry-sinina committed Aug 26, 2018
1 parent 14327f5 commit f257fca
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions app/admin/system/network_prefix.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,8 @@ def scoped_collection
# }
filter :id
filter :prefix
filter :country, input_html: {
class: 'chosen',
onchange: remote_chosen_request(:get, 'system_countries/get_networks', {country_id: "$(this).val()"}, :q_network_id)
}

filter :network, input_html: {class: 'chosen'}, collection: -> {
System::Country.find(assigns["search"].country_id_eq).networks rescue []
}
filter :country, input_html: {class: 'chosen'}
filter :network, input_html: {class: 'chosen'}
filter :number_contains

index do
Expand Down

0 comments on commit f257fca

Please sign in to comment.