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
Léo-Paul Géneau
gitlab-ce
Commits
6a238c37
Commit
6a238c37
authored
Apr 12, 2016
by
Douglas Barbosa Alexandre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix todo_target_path for todos where target was removed
parent
2505dc46
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
app/assets/javascripts/todos.js.coffee
app/assets/javascripts/todos.js.coffee
+2
-0
app/helpers/todos_helper.rb
app/helpers/todos_helper.rb
+2
-0
No files found.
app/assets/javascripts/todos.js.coffee
View file @
6a238c37
...
...
@@ -59,6 +59,8 @@ class @Todos
goToTodoUrl
:
(
e
)
->
todoLink
=
$
(
this
).
data
(
'url'
)
return
unless
todoLink
if
e
.
metaKey
e
.
preventDefault
()
window
.
open
(
todoLink
,
'_blank'
)
...
...
app/helpers/todos_helper.rb
View file @
6a238c37
...
...
@@ -20,6 +20,8 @@ module TodosHelper
end
def
todo_target_path
(
todo
)
return
unless
todo
.
target
.
present?
anchor
=
dom_id
(
todo
.
note
)
if
todo
.
note
.
present?
if
todo
.
for_commit?
...
...
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