Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Denisov <1101.debian@gmail.com>2012-12-03 04:29:07 +0400
committerAlex Denisov <1101.debian@gmail.com>2013-01-09 23:30:20 +0400
commit97d17cf835ebe5121330a3775ae58bcab792851e (patch)
treeb5119e577d097c7cf3bced028a8e584a91dc0c09 /app/controllers/dashboard_controller.rb
parentb255c3c44b849510e19be88833bb73425b8d0e9d (diff)
Event filters stores at cookies.
Diffstat (limited to 'app/controllers/dashboard_controller.rb')
-rw-r--r--app/controllers/dashboard_controller.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/controllers/dashboard_controller.rb b/app/controllers/dashboard_controller.rb
index 4bd840a07fb..c0ec4708e0a 100644
--- a/app/controllers/dashboard_controller.rb
+++ b/app/controllers/dashboard_controller.rb
@@ -60,6 +60,7 @@ class DashboardController < ApplicationController
end
def event_filter
- @event_filter ||= EventFilter.new(params[:event_filter])
+ filters = cookies['event_filter'].split(',') if cookies['event_filter']
+ @event_filter ||= EventFilter.new(filters)
end
end