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
iv
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
...
@@ -197,7 +197,6 @@ class GitLabDropdown
@
dropdown
.
find
(
".dropdown-input-field"
).
focus
()
@
dropdown
.
find
(
".dropdown-input-field"
).
focus
()
hidden
:
(
e
)
=>
hidden
:
(
e
)
=>
if
@
options
.
filterable
if
@
options
.
filterable
@
dropdown
@
dropdown
.
find
(
".dropdown-input-field"
)
.
find
(
".dropdown-input-field"
)
...
...
app/assets/javascripts/issuable_context.js.coffee
View file @
53a83112
...
@@ -10,12 +10,19 @@ class @IssuableContext
...
@@ -10,12 +10,19 @@ class @IssuableContext
$
(
this
).
submit
()
$
(
this
).
submit
()
$
(
document
).
on
"click"
,
".edit-link"
,
(
e
)
->
$
(
document
).
on
"click"
,
".edit-link"
,
(
e
)
->
block
=
$
(
@
).
parents
(
'.block'
)
$block
=
$
(
@
).
parents
(
'.block'
)
block
.
find
(
'.selectbox'
).
show
()
$selectbox
=
$block
.
find
(
'.selectbox'
)
block
.
find
(
'.value'
).
hide
()
if
$selectbox
.
is
(
':visible'
)
setTimeout
(
->
$selectbox
.
hide
()
block
.
find
(
'.dropdown-menu-toggle'
).
trigger
'click'
$block
.
find
(
'.value'
).
show
()
),
0
else
$selectbox
.
show
()
$block
.
find
(
'.value'
).
hide
()
if
$selectbox
.
is
(
':visible'
)
setTimeout
(
->
$block
.
find
(
'.dropdown-menu-toggle'
).
trigger
'click'
),
0
$
(
".right-sidebar"
).
niceScroll
()
$
(
".right-sidebar"
).
niceScroll
()
...
...
app/assets/javascripts/users_select.js.coffee
View file @
53a83112
...
@@ -45,7 +45,7 @@ class @UsersSelect
...
@@ -45,7 +45,7 @@ class @UsersSelect
user
=
user
=
name
:
data
.
assignee
.
name
name
:
data
.
assignee
.
name
username
:
data
.
assignee
.
username
username
:
data
.
assignee
.
username
avatar
:
data
.
assignee
.
avatar
.
url
avatar
:
data
.
assignee
.
avatar
_
url
else
else
user
=
user
=
name
:
'Unassigned'
name
:
'Unassigned'
...
@@ -129,7 +129,7 @@ class @UsersSelect
...
@@ -129,7 +129,7 @@ class @UsersSelect
inputId
:
'issue_assignee_id'
inputId
:
'issue_assignee_id'
hidden
:
->
hidden
:
(
e
)
->
$selectbox
.
hide
()
$selectbox
.
hide
()
$value
.
show
()
$value
.
show
()
...
...
app/controllers/projects/issues_controller.rb
View file @
53a83112
...
@@ -113,7 +113,7 @@ class Projects::IssuesController < Projects::ApplicationController
...
@@ -113,7 +113,7 @@ class Projects::IssuesController < Projects::ApplicationController
end
end
end
end
format
.
json
do
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
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