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
Boxiang Sun
gitlab-ce
Commits
958a499a
Commit
958a499a
authored
Dec 15, 2016
by
Alfredo Sumaran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix eslint errors
parent
58597bf5
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
10 deletions
+10
-10
app/assets/javascripts/dispatcher.js.es6
app/assets/javascripts/dispatcher.js.es6
+1
-1
app/assets/javascripts/issues_bulk_assignment.js.es6
app/assets/javascripts/issues_bulk_assignment.js.es6
+7
-7
app/assets/javascripts/labels_select.js
app/assets/javascripts/labels_select.js
+1
-1
app/assets/javascripts/render_math.js
app/assets/javascripts/render_math.js
+1
-1
No files found.
app/assets/javascripts/dispatcher.js.es6
View file @
958a499a
...
@@ -75,7 +75,7 @@
...
@@ -75,7 +75,7 @@
case 'projects:issues:index':
case 'projects:issues:index':
Issuable.init();
Issuable.init();
new gl.IssuableBulkActions({
new gl.IssuableBulkActions({
prefixId: page === 'projects:merge_requests:index' ?
'merge_request_' : 'issue_'
prefixId: page === 'projects:merge_requests:index' ?
'merge_request_' : 'issue_',
});
});
shortcut_handler = new ShortcutsNavigation();
shortcut_handler = new ShortcutsNavigation();
break;
break;
...
...
app/assets/javascripts/issues_bulk_assignment.js.es6
View file @
958a499a
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
class IssuableBulkActions {
class IssuableBulkActions {
constructor({ container, form, issues, prefixId } = {}) {
constructor({ container, form, issues, prefixId } = {}) {
this.prefixId = prefixId ||
'issue_';
this.prefixId = prefixId ||
'issue_';
this.form = form || this.getElement('.bulk-update');
this.form = form || this.getElement('.bulk-update');
this.$labelDropdown = this.form.find('.js-label-select');
this.$labelDropdown = this.form.find('.js-label-select');
this.issues = issues || this.getElement('.issues-list .issue');
this.issues = issues || this.getElement('.issues-list .issue');
...
@@ -107,7 +107,7 @@
...
@@ -107,7 +107,7 @@
}
}
setOriginalDropdownData() {
setOriginalDropdownData() {
le
t $labelSelect = $('.bulk-update .js-label-select');
cons
t $labelSelect = $('.bulk-update .js-label-select');
$labelSelect.data('common', this.getOriginalCommonIds());
$labelSelect.data('common', this.getOriginalCommonIds());
$labelSelect.data('marked', this.getOriginalMarkedIds());
$labelSelect.data('marked', this.getOriginalMarkedIds());
$labelSelect.data('indeterminate', this.getOriginalIndeterminateIds());
$labelSelect.data('indeterminate', this.getOriginalIndeterminateIds());
...
@@ -115,7 +115,7 @@
...
@@ -115,7 +115,7 @@
// From issuable's initial bulk selection
// From issuable's initial bulk selection
getOriginalCommonIds() {
getOriginalCommonIds() {
le
t labelIds = [];
cons
t labelIds = [];
this.getElement('.selected_issue:checked').each((i, el) => {
this.getElement('.selected_issue:checked').each((i, el) => {
labelIds.push(this.getElement(`#${this.prefixId}${el.dataset.id}`).data('labels'));
labelIds.push(this.getElement(`#${this.prefixId}${el.dataset.id}`).data('labels'));
...
@@ -125,17 +125,17 @@
...
@@ -125,17 +125,17 @@
// From issuable's initial bulk selection
// From issuable's initial bulk selection
getOriginalMarkedIds() {
getOriginalMarkedIds() {
var
labelIds = [];
const
labelIds = [];
this.getElement('.selected_issue:checked').each((i, el) => {
this.getElement('.selected_issue:checked').each((i, el) => {
labelIds.push(this.getElement(`#${this.prefixId}${el.dataset.id}`).data('labels'));
labelIds.push(this.getElement(`#${this.prefixId}${el.dataset.id}`).data('labels'));
});
});
return _.intersection.apply(
_
, labelIds);
return _.intersection.apply(
this
, labelIds);
}
}
// From issuable's initial bulk selection
// From issuable's initial bulk selection
getOriginalIndeterminateIds() {
getOriginalIndeterminateIds() {
le
t uniqueIds = [];
cons
t uniqueIds = [];
le
t labelIds = [];
cons
t labelIds = [];
let issuableLabels = [];
let issuableLabels = [];
// Collect unique label IDs for all checked issues
// Collect unique label IDs for all checked issues
...
...
app/assets/javascripts/labels_select.js
View file @
958a499a
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
var
_this
;
var
_this
;
_this
=
this
;
_this
=
this
;
$
(
'
.js-label-select
'
).
each
(
function
(
i
,
dropdown
)
{
$
(
'
.js-label-select
'
).
each
(
function
(
i
,
dropdown
)
{
var
$block
,
$colorPreview
,
$dropdown
,
$form
,
$loading
,
$selectbox
,
$sidebarCollapsedValue
,
$value
,
abilityName
,
defaultLabel
,
enableLabelCreateButton
,
issueURLSplit
,
issueUpdateURL
,
labelHTMLTemplate
,
labelNoneHTMLTemplate
,
labelUrl
,
namespacePath
,
projectPath
,
saveLabelData
,
selectedLabel
,
showAny
,
showNo
,
$sidebarLabelTooltip
,
initialSelected
,
$toggleText
,
fieldName
,
useId
,
propertyName
,
showMenuAbove
,
$container
;
var
$block
,
$colorPreview
,
$dropdown
,
$form
,
$loading
,
$selectbox
,
$sidebarCollapsedValue
,
$value
,
abilityName
,
defaultLabel
,
enableLabelCreateButton
,
issueURLSplit
,
issueUpdateURL
,
labelHTMLTemplate
,
labelNoneHTMLTemplate
,
labelUrl
,
namespacePath
,
projectPath
,
saveLabelData
,
selectedLabel
,
showAny
,
showNo
,
$sidebarLabelTooltip
,
initialSelected
,
$toggleText
,
fieldName
,
useId
,
propertyName
,
showMenuAbove
,
$container
,
$dropdownContainer
;
$dropdown
=
$
(
dropdown
);
$dropdown
=
$
(
dropdown
);
$dropdownContainer
=
$dropdown
.
closest
(
'
.labels-filter
'
);
$dropdownContainer
=
$dropdown
.
closest
(
'
.labels-filter
'
);
$toggleText
=
$dropdown
.
find
(
'
.dropdown-toggle-text
'
);
$toggleText
=
$dropdown
.
find
(
'
.dropdown-toggle-text
'
);
...
...
app/assets/javascripts/render_math.js
View file @
958a499a
/* eslint-disable func-names, space-before-function-paren, consistent-return, no-var, no-undef, no-else-return, prefer-arrow-callback, padded-blocks, max-len */
/* eslint-disable func-names, space-before-function-paren, consistent-return, no-var, no-undef, no-else-return, prefer-arrow-callback, padded-blocks, max-len
, no-console
*/
// Renders math using KaTeX in any element with the
// Renders math using KaTeX in any element with the
// `js-render-math` class
// `js-render-math` class
//
//
...
...
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