summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/dashboard.js.coffee
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/javascripts/dashboard.js.coffee')
-rw-r--r--app/assets/javascripts/dashboard.js.coffee27
1 files changed, 0 insertions, 27 deletions
diff --git a/app/assets/javascripts/dashboard.js.coffee b/app/assets/javascripts/dashboard.js.coffee
index 4871936d5b2..d2bd9e7362b 100644
--- a/app/assets/javascripts/dashboard.js.coffee
+++ b/app/assets/javascripts/dashboard.js.coffee
@@ -1,13 +1,7 @@
class Dashboard
constructor: ->
- Pager.init 20, true
@initSidebarTab()
- $(".event_filter_link").bind "click", (event) =>
- event.preventDefault()
- @toggleFilter($(event.currentTarget))
- @reloadActivities()
-
$(".dash-filter").keyup ->
terms = $(this).val()
uiBox = $(this).parents('.ui-box').first()
@@ -24,27 +18,6 @@ class Dashboard
- reloadActivities: ->
- $(".content_list").html ''
- Pager.init 20, true
-
- toggleFilter: (sender) ->
- sender.parent().toggleClass "inactive"
- event_filters = $.cookie("event_filter")
- filter = sender.attr("id").split("_")[0]
- if event_filters
- event_filters = event_filters.split(",")
- else
- event_filters = new Array()
-
- index = event_filters.indexOf(filter)
- if index is -1
- event_filters.push filter
- else
- event_filters.splice index, 1
-
- $.cookie "event_filter", event_filters.join(","), { path: '/' }
-
initSidebarTab: ->
key = "dashboard_sidebar_filter"