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
bde81ef6
Commit
bde81ef6
authored
Jul 03, 2018
by
Kushal Pandya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unnecessary element check
parent
76bd18f6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
19 deletions
+17
-19
app/assets/javascripts/pages/dashboard/todos/index/todos.js
app/assets/javascripts/pages/dashboard/todos/index/todos.js
+17
-19
No files found.
app/assets/javascripts/pages/dashboard/todos/index/todos.js
View file @
bde81ef6
...
...
@@ -48,25 +48,23 @@ export default class Todos {
}
initFilterDropdown
(
$dropdown
,
fieldName
,
searchFields
)
{
if
(
$dropdown
.
length
)
{
$dropdown
.
glDropdown
({
fieldName
,
selectable
:
true
,
filterable
:
searchFields
?
true
:
false
,
search
:
{
fields
:
searchFields
},
data
:
$dropdown
.
data
(
'
data
'
),
clicked
:
()
=>
{
const
$formEl
=
$dropdown
.
closest
(
'
form.filter-form
'
);
const
mutexDropdowns
=
{
group_id
:
'
project_id
'
,
project_id
:
'
group_id
'
,
};
$formEl
.
find
(
`input[name="
${
mutexDropdowns
[
fieldName
]}
"]`
).
remove
();
$formEl
.
submit
();
},
});
}
$dropdown
.
glDropdown
({
fieldName
,
selectable
:
true
,
filterable
:
searchFields
?
true
:
false
,
search
:
{
fields
:
searchFields
},
data
:
$dropdown
.
data
(
'
data
'
),
clicked
:
()
=>
{
const
$formEl
=
$dropdown
.
closest
(
'
form.filter-form
'
);
const
mutexDropdowns
=
{
group_id
:
'
project_id
'
,
project_id
:
'
group_id
'
,
};
$formEl
.
find
(
`input[name="
${
mutexDropdowns
[
fieldName
]}
"]`
).
remove
();
$formEl
.
submit
();
},
});
}
updateRowStateClicked
(
e
)
{
...
...
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