Skip to content

Commit

Permalink
fixes theforeman#8467 - trends range selector is now visible
Browse files Browse the repository at this point in the history
  • Loading branch information
ohadlevy authored and dLobatog committed Nov 28, 2014
1 parent 5355b6b commit 50594a5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/helpers/trends_helper.rb
Expand Up @@ -14,7 +14,9 @@ def trendable_types(new_record)

def trend_days_filter
form_tag @trend, :id => 'days_filter', :method => :get, :class=>"form form-inline" do
content_tag(:span, (_("Trend of the last %s days.") % select(nil, 'range', 1..Setting.max_trend, {:selected => range}, {:class=>"col-md-1", :onchange =>"$('#days_filter').submit();$(this).disabled();"})).html_safe)
content_tag(:span, (_("Trend of the last %s days.") %
select(nil, 'range', 1..Setting.max_trend, {:selected => range},
{:onchange =>"$('#days_filter').submit();$(this).attr('disabled','disabled');;"})).html_safe)
end
end

Expand Down

0 comments on commit 50594a5

Please sign in to comment.