BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
abfa6dcc
Commit
abfa6dcc
authored
Apr 12, 2016
by
Robert Speicher
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'fix-todo-target-path' into 'master'
Fix todo_target_path for todos where target was removed Fixes #15187 See merge request !3684
parents
2505dc46
6a238c37
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
todos.js.coffee
app/assets/javascripts/todos.js.coffee
+2
-0
todos_helper.rb
app/helpers/todos_helper.rb
+2
-0
No files found.
app/assets/javascripts/todos.js.coffee
View file @
abfa6dcc
...
...
@@ -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 @
abfa6dcc
...
...
@@ -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