replace javascript:void with preventDefault
This commit is contained in:
parent
5133fe8efb
commit
d7bc121474
2 changed files with 3 additions and 2 deletions
|
@ -3,7 +3,8 @@ $ ->
|
||||||
|
|
||||||
dashboardPage = ->
|
dashboardPage = ->
|
||||||
Pager.init 20, true
|
Pager.init 20, true
|
||||||
$(".event_filter_link").bind "click", ->
|
$(".event_filter_link").bind "click", (event) ->
|
||||||
|
event.preventDefault()
|
||||||
toggleFilter $(this)
|
toggleFilter $(this)
|
||||||
reloadActivities()
|
reloadActivities()
|
||||||
|
|
||||||
|
|
|
@ -29,7 +29,7 @@ module EventsHelper
|
||||||
end
|
end
|
||||||
|
|
||||||
content_tag :div, class: "filter_icon #{inactive}" do
|
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"
|
image_tag "event_filter_#{key}.png"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue