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
adeaeb49
Commit
adeaeb49
authored
Dec 18, 2019
by
Winnie Hellmann
Committed by
Kushal Pandya
Dec 18, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Disable ESLint rule no-jquery/no-fade inline
Ignore all existing offenses of no-jquery/no-fade.
parent
b8921887
Changes
9
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
26 additions
and
1 deletion
+26
-1
.eslintrc.yml
.eslintrc.yml
+0
-1
app/assets/javascripts/commit/image_file.js
app/assets/javascripts/commit/image_file.js
+3
-0
app/assets/javascripts/due_date_select.js
app/assets/javascripts/due_date_select.js
+4
-0
app/assets/javascripts/filterable_list.js
app/assets/javascripts/filterable_list.js
+2
-0
app/assets/javascripts/labels_select.js
app/assets/javascripts/labels_select.js
+5
-0
app/assets/javascripts/main.js
app/assets/javascripts/main.js
+1
-0
app/assets/javascripts/milestone_select.js
app/assets/javascripts/milestone_select.js
+7
-0
app/assets/javascripts/users_select.js
app/assets/javascripts/users_select.js
+3
-0
ee/app/assets/javascripts/weight_select.js
ee/app/assets/javascripts/weight_select.js
+1
-0
No files found.
.eslintrc.yml
View file @
adeaeb49
...
...
@@ -50,7 +50,6 @@ rules:
# all offenses of no-jquery/no-animate-toggle are false positives ( $toast.show() )
no-jquery/no-animate-toggle
:
off
no-jquery/no-event-shorthand
:
off
no-jquery/no-fade
:
off
no-jquery/no-serialize
:
error
no-jquery/no-sizzle
:
off
promise/always-return
:
off
...
...
app/assets/javascripts/commit/image_file.js
View file @
adeaeb49
...
...
@@ -40,7 +40,10 @@ export default class ImageFile {
.
removeClass
(
'
active
'
)
.
filter
(
`.
${
viewMode
}
`
)
.
addClass
(
'
active
'
);
// eslint-disable-next-line no-jquery/no-fade
return
$
(
`.view:visible:not(.
${
viewMode
}
)`
,
this
.
file
).
fadeOut
(
200
,
()
=>
{
// eslint-disable-next-line no-jquery/no-fade
$
(
`.view.
${
viewMode
}
`
,
this
.
file
).
fadeIn
(
200
);
return
this
.
initView
(
viewMode
);
});
...
...
app/assets/javascripts/due_date_select.js
View file @
adeaeb49
...
...
@@ -116,11 +116,13 @@ class DueDateSelect {
}
updateIssueBoardIssue
()
{
// eslint-disable-next-line no-jquery/no-fade
this
.
$loading
.
fadeIn
();
this
.
$dropdown
.
trigger
(
'
loading.gl.dropdown
'
);
this
.
$selectbox
.
hide
();
this
.
$value
.
css
(
'
display
'
,
''
);
const
fadeOutLoader
=
()
=>
{
// eslint-disable-next-line no-jquery/no-fade
this
.
$loading
.
fadeOut
();
};
...
...
@@ -135,6 +137,7 @@ class DueDateSelect {
const
hasDueDate
=
this
.
displayedDate
!==
__
(
'
None
'
);
const
displayedDateStyle
=
hasDueDate
?
'
bold
'
:
'
no-value
'
;
// eslint-disable-next-line no-jquery/no-fade
this
.
$loading
.
removeClass
(
'
hidden
'
).
fadeIn
();
if
(
isDropdown
)
{
...
...
@@ -158,6 +161,7 @@ class DueDateSelect {
}
this
.
$sidebarCollapsedValue
.
attr
(
'
data-original-title
'
,
tooltipText
);
// eslint-disable-next-line no-jquery/no-fade
return
this
.
$loading
.
fadeOut
();
});
}
...
...
app/assets/javascripts/filterable_list.js
View file @
adeaeb49
...
...
@@ -64,6 +64,7 @@ export default class FilterableList {
return
false
;
}
// eslint-disable-next-line no-jquery/no-fade
$
(
this
.
listHolderElement
).
fadeTo
(
250
,
0.5
);
this
.
isBusy
=
true
;
...
...
@@ -98,6 +99,7 @@ export default class FilterableList {
onFilterComplete
()
{
this
.
isBusy
=
false
;
// eslint-disable-next-line no-jquery/no-fade
$
(
this
.
listHolderElement
).
fadeTo
(
250
,
1
);
}
}
app/assets/javascripts/labels_select.js
View file @
adeaeb49
...
...
@@ -45,6 +45,7 @@ export default class LabelsSelect {
const
$sidebarLabelTooltip
=
$block
.
find
(
'
.js-sidebar-labels-tooltip
'
);
const
$value
=
$block
.
find
(
'
.value
'
);
const
$dropdownMenu
=
$dropdown
.
parent
().
find
(
'
.dropdown-menu
'
);
// eslint-disable-next-line no-jquery/no-fade
const
$loading
=
$block
.
find
(
'
.block-loading
'
).
fadeOut
();
const
fieldName
=
$dropdown
.
data
(
'
fieldName
'
);
let
initialSelected
=
$selectbox
...
...
@@ -84,6 +85,7 @@ export default class LabelsSelect {
if
(
!
selected
.
length
)
{
data
[
abilityName
].
label_ids
=
[
''
];
}
// eslint-disable-next-line no-jquery/no-fade
$loading
.
removeClass
(
'
hidden
'
).
fadeIn
();
$dropdown
.
trigger
(
'
loading.gl.dropdown
'
);
axios
...
...
@@ -91,6 +93,7 @@ export default class LabelsSelect {
.
then
(({
data
})
=>
{
let
labelTooltipTitle
;
let
template
;
// eslint-disable-next-line no-jquery/no-fade
$loading
.
fadeOut
();
$dropdown
.
trigger
(
'
loaded.gl.dropdown
'
);
$selectbox
.
hide
();
...
...
@@ -361,6 +364,7 @@ export default class LabelsSelect {
const
label
=
clickEvent
.
selectedObj
;
const
fadeOutLoader
=
()
=>
{
// eslint-disable-next-line no-jquery/no-fade
$loading
.
fadeOut
();
};
...
...
@@ -422,6 +426,7 @@ export default class LabelsSelect {
boardsStore
.
detail
.
issue
.
labels
=
labels
;
}
// eslint-disable-next-line no-jquery/no-fade
$loading
.
fadeIn
();
const
oldLabels
=
boardsStore
.
detail
.
issue
.
labels
;
...
...
app/assets/javascripts/main.js
View file @
adeaeb49
...
...
@@ -113,6 +113,7 @@ function deferredInitialisation() {
});
$
(
'
.js-remove-tr
'
).
on
(
'
ajax:success
'
,
function
removeTRAjaxSuccessCallback
()
{
// eslint-disable-next-line no-jquery/no-fade
$
(
this
)
.
closest
(
'
tr
'
)
.
fadeOut
();
...
...
app/assets/javascripts/milestone_select.js
View file @
adeaeb49
...
...
@@ -52,6 +52,7 @@ export default class MilestoneSelect {
const
$block
=
$selectBox
.
closest
(
'
.block
'
);
const
$sidebarCollapsedValue
=
$block
.
find
(
'
.sidebar-collapsed-icon
'
);
const
$value
=
$block
.
find
(
'
.value
'
);
// eslint-disable-next-line no-jquery/no-fade
const
$loading
=
$block
.
find
(
'
.block-loading
'
).
fadeOut
();
selectedMilestoneDefault
=
showAny
?
''
:
null
;
selectedMilestoneDefault
=
...
...
@@ -202,15 +203,18 @@ export default class MilestoneSelect {
}
$dropdown
.
trigger
(
'
loading.gl.dropdown
'
);
// eslint-disable-next-line no-jquery/no-fade
$loading
.
removeClass
(
'
hidden
'
).
fadeIn
();
boardsStore
.
detail
.
issue
.
update
(
$dropdown
.
attr
(
'
data-issue-update
'
))
.
then
(()
=>
{
$dropdown
.
trigger
(
'
loaded.gl.dropdown
'
);
// eslint-disable-next-line no-jquery/no-fade
$loading
.
fadeOut
();
})
.
catch
(()
=>
{
// eslint-disable-next-line no-jquery/no-fade
$loading
.
fadeOut
();
});
}
else
{
...
...
@@ -218,12 +222,14 @@ export default class MilestoneSelect {
data
=
{};
data
[
abilityName
]
=
{};
data
[
abilityName
].
milestone_id
=
selected
!=
null
?
selected
:
null
;
// eslint-disable-next-line no-jquery/no-fade
$loading
.
removeClass
(
'
hidden
'
).
fadeIn
();
$dropdown
.
trigger
(
'
loading.gl.dropdown
'
);
return
axios
.
put
(
issueUpdateURL
,
data
)
.
then
(({
data
})
=>
{
$dropdown
.
trigger
(
'
loaded.gl.dropdown
'
);
// eslint-disable-next-line no-jquery/no-fade
$loading
.
fadeOut
();
$selectBox
.
hide
();
$value
.
css
(
'
display
'
,
''
);
...
...
@@ -247,6 +253,7 @@ export default class MilestoneSelect {
}
})
.
catch
(()
=>
{
// eslint-disable-next-line no-jquery/no-fade
$loading
.
fadeOut
();
});
}
...
...
app/assets/javascripts/users_select.js
View file @
adeaeb49
...
...
@@ -53,6 +53,7 @@ function UsersSelect(currentUser, els, options = {}) {
const
abilityName
=
$dropdown
.
data
(
'
abilityName
'
);
let
$value
=
$block
.
find
(
'
.value
'
);
const
$collapsedSidebar
=
$block
.
find
(
'
.sidebar-collapsed-user
'
);
// eslint-disable-next-line no-jquery/no-fade
const
$loading
=
$block
.
find
(
'
.block-loading
'
).
fadeOut
();
const
selectedIdDefault
=
defaultNullUser
&&
showNullUser
?
0
:
null
;
let
selectedId
=
$dropdown
.
data
(
'
selected
'
);
...
...
@@ -188,6 +189,7 @@ function UsersSelect(currentUser, els, options = {}) {
const
data
=
{};
data
[
abilityName
]
=
{};
data
[
abilityName
].
assignee_id
=
selected
!=
null
?
selected
:
null
;
// eslint-disable-next-line no-jquery/no-fade
$loading
.
removeClass
(
'
hidden
'
).
fadeIn
();
$dropdown
.
trigger
(
'
loading.gl.dropdown
'
);
...
...
@@ -195,6 +197,7 @@ function UsersSelect(currentUser, els, options = {}) {
let
user
=
{};
let
tooltipTitle
=
user
.
name
;
$dropdown
.
trigger
(
'
loaded.gl.dropdown
'
);
// eslint-disable-next-line no-jquery/no-fade
$loading
.
fadeOut
();
if
(
data
.
assignee
)
{
user
=
{
...
...
ee/app/assets/javascripts/weight_select.js
View file @
adeaeb49
...
...
@@ -11,6 +11,7 @@ function WeightSelect(els, options = {}) {
const
$selectbox
=
$dropdown
.
closest
(
'
.selectbox
'
);
const
$block
=
$selectbox
.
closest
(
'
.block
'
);
const
$value
=
$block
.
find
(
'
.value
'
);
// eslint-disable-next-line no-jquery/no-fade
$block
.
find
(
'
.block-loading
'
).
fadeOut
();
const
fieldName
=
options
.
fieldName
||
$dropdown
.
data
(
'
fieldName
'
);
const
inputField
=
$dropdown
.
closest
(
'
.selectbox
'
).
find
(
`input[name='
${
fieldName
}
']`
);
...
...
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