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
802cf3aa
Commit
802cf3aa
authored
Dec 18, 2019
by
Winnie Hellmann
Committed by
Natalia Tepluhina
Dec 18, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enable ESLint rule no-jquery/no-sizzle
parent
0431f9d9
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
13 additions
and
6 deletions
+13
-6
.eslintrc.yml
.eslintrc.yml
+0
-1
app/assets/javascripts/notes.js
app/assets/javascripts/notes.js
+2
-1
app/assets/javascripts/notifications_dropdown.js
app/assets/javascripts/notifications_dropdown.js
+3
-1
app/assets/javascripts/notifications_form.js
app/assets/javascripts/notifications_form.js
+1
-1
app/assets/javascripts/tree.js
app/assets/javascripts/tree.js
+3
-1
ee/app/assets/javascripts/projects/custom_project_templates.js
...p/assets/javascripts/projects/custom_project_templates.js
+4
-1
No files found.
.eslintrc.yml
View file @
802cf3aa
...
...
@@ -51,7 +51,6 @@ rules:
no-jquery/no-animate-toggle
:
off
no-jquery/no-event-shorthand
:
off
no-jquery/no-serialize
:
error
no-jquery/no-sizzle
:
off
promise/always-return
:
off
promise/no-callback-in-promise
:
off
overrides
:
...
...
app/assets/javascripts/notes.js
View file @
802cf3aa
...
...
@@ -1359,7 +1359,8 @@ export default class Notes {
const
$systemNote
=
$
(
systemNote
);
const
headerMessage
=
$systemNote
.
find
(
'
.note-text
'
)
.
find
(
'
p:first
'
)
.
find
(
'
p
'
)
.
first
()
.
text
()
.
replace
(
'
:
'
,
''
);
...
...
app/assets/javascripts/notifications_dropdown.js
View file @
802cf3aa
...
...
@@ -11,7 +11,9 @@ export default function notificationsDropdown() {
}
const
notificationLevel
=
$
(
this
).
data
(
'
notificationLevel
'
);
const
form
=
$
(
this
).
parents
(
'
.notification-form:first
'
);
const
form
=
$
(
this
)
.
parents
(
'
.notification-form
'
)
.
first
();
form
.
find
(
'
.js-notification-loading
'
).
toggleClass
(
'
fa-bell fa-spin fa-spinner
'
);
if
(
form
.
hasClass
(
'
no-label
'
))
{
...
...
app/assets/javascripts/notifications_form.js
View file @
802cf3aa
...
...
@@ -31,7 +31,7 @@ export default class NotificationsForm {
}
saveEvent
(
$checkbox
,
$parent
)
{
const
form
=
$parent
.
parents
(
'
form
:first
'
);
const
form
=
$parent
.
parents
(
'
form
'
).
first
(
);
this
.
showCheckboxLoadingSpinner
(
$parent
);
...
...
app/assets/javascripts/tree.js
View file @
802cf3aa
...
...
@@ -21,7 +21,9 @@ export default class TreeView {
}
});
// Show the "Loading commit data" for only the first element
$
(
'
span.log_loading:first
'
).
removeClass
(
'
hide
'
);
$
(
'
span.log_loading
'
)
.
first
()
.
removeClass
(
'
hide
'
);
}
initKeyNav
()
{
...
...
ee/app/assets/javascripts/projects/custom_project_templates.js
View file @
802cf3aa
...
...
@@ -90,7 +90,10 @@ const bindEvents = () => {
projectNew
.
onProjectNameChange
(
$activeTabProjectName
,
$activeTabProjectPath
),
);
$projectFieldsForm
.
find
(
'
.js-select-namespace:first
'
).
val
(
subgroupId
);
$projectFieldsForm
.
find
(
'
.js-select-namespace
'
)
.
first
()
.
val
(
subgroupId
);
}
$useCustomTemplateBtn
.
on
(
'
change
'
,
chooseTemplate
);
...
...
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