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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
9afa9b8d
Commit
9afa9b8d
authored
Oct 31, 2017
by
Filipa Lacerda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enable eslint
parent
1c978aff
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
14 deletions
+11
-14
app/assets/javascripts/issue_status_select.js
app/assets/javascripts/issue_status_select.js
+11
-14
No files found.
app/assets/javascripts/issue_status_select.js
View file @
9afa9b8d
/* eslint-disable func-names,wrap-iife, no-shadow, no-unused-vars, one-var */
export
default
function
issueStatusSelect
()
{
$
(
'
.js-issue-status
'
).
each
(
function
(
i
,
el
)
{
$
(
'
.js-issue-status
'
).
each
(
(
i
,
el
)
=>
{
const
fieldName
=
$
(
el
).
data
(
'
field-name
'
);
return
$
(
el
).
glDropdown
({
selectable
:
true
,
fieldName
,
toggleLabel
:
(
function
(
_this
)
{
return
function
(
selected
,
el
,
instance
)
{
toggleLabel
(
selected
,
element
,
instance
)
{
let
label
=
'
Author
'
;
const
$item
=
instance
.
dropdown
.
find
(
'
.is-active
'
);
if
(
$item
.
length
)
{
label
=
$item
.
text
();
}
return
label
;
};
})(
this
),
},
clicked
(
options
)
{
return
options
.
e
.
preventDefault
();
},
id
(
obj
,
el
)
{
return
$
(
el
).
data
(
'
id
'
);
id
(
obj
,
el
ement
)
{
return
$
(
el
ement
).
data
(
'
id
'
);
},
});
});
...
...
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