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
Tatuya Kamada
gitlab-ce
Commits
3cc04583
Commit
3cc04583
authored
Jan 09, 2013
by
Alex Denisov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reloading of events via ajax instead of page reloading.
parent
0d9f73fa
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
4 deletions
+11
-4
app/assets/javascripts/dashboard.js
app/assets/javascripts/dashboard.js
+10
-3
app/helpers/events_helper.rb
app/helpers/events_helper.rb
+1
-1
No files found.
app/assets/javascripts/dashboard.js
View file @
3cc04583
...
@@ -10,13 +10,20 @@ $(function(){
...
@@ -10,13 +10,20 @@ $(function(){
function
dashboardPage
(){
function
dashboardPage
(){
$
(
"
.event_filter_link
"
).
bind
(
'
click
'
,(
function
(){
$
(
"
.event_filter_link
"
).
bind
(
'
click
'
,(
function
(){
enableFilter
(
this
.
id
);
toggleFilter
(
$
(
this
));
reloadActivities
();
}));
}));
}
}
function
enableFilter
(
sender_id
){
function
reloadActivities
(){
$
(
'
.content_list
'
).
html
(
''
);
Pager
.
init
(
20
,
true
);
}
function
toggleFilter
(
sender
){
sender
.
parent
().
toggleClass
(
'
inactive
'
);
var
event_filters
=
$
.
cookie
(
'
event_filter
'
);
var
event_filters
=
$
.
cookie
(
'
event_filter
'
);
var
filter
=
sender
_id
.
split
(
'
_
'
)[
0
];
var
filter
=
sender
.
attr
(
'
id
'
)
.
split
(
'
_
'
)[
0
];
if
(
!
event_filters
)
{
if
(
!
event_filters
)
{
event_filters
=
new
Array
();
event_filters
=
new
Array
();
}
else
{
}
else
{
...
...
app/helpers/events_helper.rb
View file @
3cc04583
...
@@ -29,7 +29,7 @@ module EventsHelper
...
@@ -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
dashboard_path
,
class:
'has_tooltip event_filter_link'
,
id:
"
#{
key
}
_event_filter"
,
'data-original-title'
=>
tooltip
do
link_to
'javascript:void(0)'
,
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
...
...
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