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
bb81eff4
Commit
bb81eff4
authored
Feb 03, 2016
by
Jacob Schatz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue sidebar bug fix.
Thanks @rspeicher.
parent
d6d3a132
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
5 deletions
+3
-5
app/controllers/projects/issues_controller.rb
app/controllers/projects/issues_controller.rb
+1
-3
app/views/projects/issues/update.js.haml
app/views/projects/issues/update.js.haml
+2
-2
No files found.
app/controllers/projects/issues_controller.rb
View file @
bb81eff4
...
@@ -98,9 +98,7 @@ class Projects::IssuesController < Projects::ApplicationController
...
@@ -98,9 +98,7 @@ class Projects::IssuesController < Projects::ApplicationController
format
.
json
do
format
.
json
do
render
json:
{
render
json:
{
saved:
@issue
.
valid?
,
saved:
@issue
.
valid?
,
assignee_avatar_url:
@issue
.
assignee
.
try
(
:avatar_url
),
assignee_avatar_url:
@issue
.
assignee
.
try
(
:avatar_url
)
milestone:
@issue
.
milestone
.
title
,
labels:
@issue
.
labels
.
pluck
(
:id
,
:title
,
:color
)
}
}
end
end
end
end
...
...
app/views/projects/issues/update.js.haml
View file @
bb81eff4
$('aside.right-sidebar')[0].outerHTML = "
#{
escape_javascript
(
render
'shared/issuable/sidebar'
,
issuable:
@issue
)
}
"
)
;
$('aside.right-sidebar')[0].outerHTML = "
#{
escape_javascript
(
render
'shared/issuable/sidebar'
,
issuable:
@issue
)
}
";
$('aside.right-sidebar').effect('highlight')
$('aside.right-sidebar').effect('highlight')
;
new Issue();
new Issue();
\ No newline at end of file
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