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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-ce
Commits
d7bc1214
Commit
d7bc1214
authored
Jan 09, 2013
by
Alex Denisov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
replace javascript:void with preventDefault
parent
5133fe8e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
app/assets/javascripts/dashboard.js.coffee
app/assets/javascripts/dashboard.js.coffee
+2
-1
app/helpers/events_helper.rb
app/helpers/events_helper.rb
+1
-1
No files found.
app/assets/javascripts/dashboard.js.coffee
View file @
d7bc1214
...
@@ -3,7 +3,8 @@ $ ->
...
@@ -3,7 +3,8 @@ $ ->
dashboardPage
=
->
dashboardPage
=
->
Pager
.
init
20
,
true
Pager
.
init
20
,
true
$
(
".event_filter_link"
).
bind
"click"
,
->
$
(
".event_filter_link"
).
bind
"click"
,
(
event
)
->
event
.
preventDefault
()
toggleFilter
$
(
this
)
toggleFilter
$
(
this
)
reloadActivities
()
reloadActivities
()
...
...
app/helpers/events_helper.rb
View file @
d7bc1214
...
@@ -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
'javascript:void(0)'
,
class:
'has_tooltip event_filter_link'
,
id:
"
#{
key
}
_event_filter"
,
'data-original-title'
=>
tooltip
do
link_to
dashboard_path
,
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