Skip to content
Snippets Groups Projects
Verified Commit 6b31088f authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Use closest instead of parent()

parent f956514b
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -12,7 +12,7 @@ class @Activities
 
 
toggleFilter: (sender) ->
sender.parent().toggleClass "active"
sender.closest('li').toggleClass "active"
event_filters = $.cookie("event_filter")
filter = sender.attr("id").split("_")[0]
if event_filters
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment