Commit d7bc1214 authored by Alex Denisov's avatar Alex Denisov

replace javascript:void with preventDefault

parent 5133fe8e
......@@ -3,7 +3,8 @@ $ ->
dashboardPage = ->
Pager.init 20, true
$(".event_filter_link").bind "click", ->
$(".event_filter_link").bind "click", (event) ->
event.preventDefault()
toggleFilter $(this)
reloadActivities()
......
......@@ -29,7 +29,7 @@ module EventsHelper
end
content_tag :div, class: "filter_icon #{inactive}" do
link_to 'javascript:void(0)', class: 'has_tooltip event_filter_link', id: "#{key}_event_filter", 'data-original-title' => tooltip do
link_to dashboard_path, class: 'has_tooltip event_filter_link', id: "#{key}_event_filter", 'data-original-title' => tooltip do
image_tag "event_filter_#{key}.png"
end
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment