Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
30b56fb0
Commit
30b56fb0
authored
Feb 23, 2016
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Treats activity tabs as single select
Fixes #8092
parent
bd71438d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
13 deletions
+5
-13
app/assets/javascripts/activities.js.coffee
app/assets/javascripts/activities.js.coffee
+5
-13
No files found.
app/assets/javascripts/activities.js.coffee
View file @
30b56fb0
class
@
Activities
class
@
Activities
constructor
:
->
constructor
:
->
Pager
.
init
20
,
true
Pager
.
init
20
,
true
$
(
".event-filter
a
"
).
bind
"click"
,
(
event
)
=>
$
(
".event-filter
-link
"
).
bind
"click"
,
(
event
)
=>
event
.
preventDefault
()
event
.
preventDefault
()
@
toggleFilter
(
$
(
event
.
currentTarget
))
@
toggleFilter
(
$
(
event
.
currentTarget
))
@
reloadActivities
()
@
reloadActivities
()
...
@@ -12,18 +12,10 @@ class @Activities
...
@@ -12,18 +12,10 @@ class @Activities
toggleFilter
:
(
sender
)
->
toggleFilter
:
(
sender
)
->
sender
.
closest
(
'li'
).
toggl
eClass
"active"
$
(
'.event-filter .active'
).
remov
eClass
"active"
event_filters
=
$
.
cookie
(
"event_filter"
)
event_filters
=
$
.
cookie
(
"event_filter"
)
filter
=
sender
.
attr
(
"id"
).
split
(
"_"
)[
0
]
filter
=
sender
.
attr
(
"id"
).
split
(
"_"
)[
0
]
if
event_filters
$
.
cookie
"event_filter"
,
(
if
event_filters
isnt
filter
then
filter
else
""
),
{
path
:
'/'
}
event_filters
=
event_filters
.
split
(
","
)
else
event_filters
=
new
Array
()
index
=
event_filters
.
indexOf
(
filter
)
if
event_filters
isnt
filter
if
index
is
-
1
sender
.
closest
(
'li'
).
toggleClass
"active"
event_filters
.
push
filter
else
event_filters
.
splice
index
,
1
$
.
cookie
"event_filter"
,
event_filters
.
join
(
","
),
{
path
:
'/'
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment