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
53a83112
Commit
53a83112
authored
Mar 24, 2016
by
Jacob Schatz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Edit button leaves modal open
Add user avatar to user selection
parent
6835f19c
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
10 deletions
+16
-10
app/assets/javascripts/gl_dropdown.js.coffee
app/assets/javascripts/gl_dropdown.js.coffee
+0
-1
app/assets/javascripts/issuable_context.js.coffee
app/assets/javascripts/issuable_context.js.coffee
+13
-6
app/assets/javascripts/users_select.js.coffee
app/assets/javascripts/users_select.js.coffee
+2
-2
app/controllers/projects/issues_controller.rb
app/controllers/projects/issues_controller.rb
+1
-1
No files found.
app/assets/javascripts/gl_dropdown.js.coffee
View file @
53a83112
...
...
@@ -197,7 +197,6 @@ class GitLabDropdown
@
dropdown
.
find
(
".dropdown-input-field"
).
focus
()
hidden
:
(
e
)
=>
if
@
options
.
filterable
@
dropdown
.
find
(
".dropdown-input-field"
)
...
...
app/assets/javascripts/issuable_context.js.coffee
View file @
53a83112
...
...
@@ -10,12 +10,19 @@ class @IssuableContext
$
(
this
).
submit
()
$
(
document
).
on
"click"
,
".edit-link"
,
(
e
)
->
block
=
$
(
@
).
parents
(
'.block'
)
block
.
find
(
'.selectbox'
).
show
()
block
.
find
(
'.value'
).
hide
()
setTimeout
(
->
block
.
find
(
'.dropdown-menu-toggle'
).
trigger
'click'
),
0
$block
=
$
(
@
).
parents
(
'.block'
)
$selectbox
=
$block
.
find
(
'.selectbox'
)
if
$selectbox
.
is
(
':visible'
)
$selectbox
.
hide
()
$block
.
find
(
'.value'
).
show
()
else
$selectbox
.
show
()
$block
.
find
(
'.value'
).
hide
()
if
$selectbox
.
is
(
':visible'
)
setTimeout
(
->
$block
.
find
(
'.dropdown-menu-toggle'
).
trigger
'click'
),
0
$
(
".right-sidebar"
).
niceScroll
()
...
...
app/assets/javascripts/users_select.js.coffee
View file @
53a83112
...
...
@@ -45,7 +45,7 @@ class @UsersSelect
user
=
name
:
data
.
assignee
.
name
username
:
data
.
assignee
.
username
avatar
:
data
.
assignee
.
avatar
.
url
avatar
:
data
.
assignee
.
avatar
_
url
else
user
=
name
:
'Unassigned'
...
...
@@ -129,7 +129,7 @@ class @UsersSelect
inputId
:
'issue_assignee_id'
hidden
:
->
hidden
:
(
e
)
->
$selectbox
.
hide
()
$value
.
show
()
...
...
app/controllers/projects/issues_controller.rb
View file @
53a83112
...
...
@@ -113,7 +113,7 @@ class Projects::IssuesController < Projects::ApplicationController
end
end
format
.
json
do
render
json:
@issue
.
to_json
(
include:
[
:milestone
,
:labels
,
:assignee
])
render
json:
@issue
.
to_json
(
include:
[
:milestone
,
:labels
,
assignee:
{
methods: :avatar_url
}
])
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