Skip to content

Commit

Permalink
Fix Incorect zoom out icon on C&U graphs
Browse files Browse the repository at this point in the history
  • Loading branch information
PanSpagetka committed Dec 20, 2016
1 parent 3bfc6af commit bffbd73
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/helpers/charting_helper.rb
Expand Up @@ -31,6 +31,7 @@ def chart_local(data, options)
end

def zoom_icon(zoom_url)
zoom_url =~ /clear$/ ? '24/chart_unzoom.png' : '16/chart_zoom.png'
# could be just url or something like "javascript:miqAsyncAjax('/host/perf_chart_chooser/10000000000017?chart_idx=0')"
zoom_url =~ /clear('\))?$/ ? '24/chart_unzoom.png' : '16/chart_zoom.png'
end
end

0 comments on commit bffbd73

Please sign in to comment.