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
3366f9d8
Commit
3366f9d8
authored
Jun 21, 2018
by
Kushal Pandya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update GFM autocomplete config
parent
b13eef1d
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
22 additions
and
7 deletions
+22
-7
app/assets/javascripts/pages/projects/init_form.js
app/assets/javascripts/pages/projects/init_form.js
+1
-1
app/assets/javascripts/pages/projects/issues/form.js
app/assets/javascripts/pages/projects/issues/form.js
+1
-1
app/assets/javascripts/pages/projects/merge_requests/init_merge_request.js
...ripts/pages/projects/merge_requests/init_merge_request.js
+1
-1
app/assets/javascripts/pages/projects/tags/new/index.js
app/assets/javascripts/pages/projects/tags/new/index.js
+1
-1
app/assets/javascripts/pages/projects/wikis/index.js
app/assets/javascripts/pages/projects/wikis/index.js
+1
-1
app/assets/javascripts/pages/snippets/form.js
app/assets/javascripts/pages/snippets/form.js
+8
-1
app/assets/javascripts/shared/milestones/form.js
app/assets/javascripts/shared/milestones/form.js
+9
-1
No files found.
app/assets/javascripts/pages/projects/init_form.js
View file @
3366f9d8
...
...
@@ -3,5 +3,5 @@ import GLForm from '~/gl_form';
export
default
function
(
$formEl
)
{
new
ZenMode
();
// eslint-disable-line no-new
new
GLForm
(
$formEl
,
true
);
// eslint-disable-line no-new
new
GLForm
(
$formEl
);
// eslint-disable-line no-new
}
app/assets/javascripts/pages/projects/issues/form.js
View file @
3366f9d8
...
...
@@ -10,7 +10,7 @@ import IssuableTemplateSelectors from '~/templates/issuable_template_selectors';
export
default
()
=>
{
new
ShortcutsNavigation
();
new
GLForm
(
$
(
'
.issue-form
'
)
,
true
);
new
GLForm
(
$
(
'
.issue-form
'
));
new
IssuableForm
(
$
(
'
.issue-form
'
));
new
LabelsSelect
();
new
MilestoneSelect
();
...
...
app/assets/javascripts/pages/projects/merge_requests/init_merge_request.js
View file @
3366f9d8
...
...
@@ -12,7 +12,7 @@ import IssuableTemplateSelectors from '~/templates/issuable_template_selectors';
export
default
()
=>
{
new
Diff
();
new
ShortcutsNavigation
();
new
GLForm
(
$
(
'
.merge-request-form
'
)
,
true
);
new
GLForm
(
$
(
'
.merge-request-form
'
));
new
IssuableForm
(
$
(
'
.merge-request-form
'
));
new
LabelsSelect
();
new
MilestoneSelect
();
...
...
app/assets/javascripts/pages/projects/tags/new/index.js
View file @
3366f9d8
...
...
@@ -5,6 +5,6 @@ import GLForm from '../../../../gl_form';
document
.
addEventListener
(
'
DOMContentLoaded
'
,
()
=>
{
new
ZenMode
();
// eslint-disable-line no-new
new
GLForm
(
$
(
'
.tag-form
'
)
,
true
);
// eslint-disable-line no-new
new
GLForm
(
$
(
'
.tag-form
'
));
// eslint-disable-line no-new
new
RefSelectDropdown
(
$
(
'
.js-branch-select
'
));
// eslint-disable-line no-new
});
app/assets/javascripts/pages/projects/wikis/index.js
View file @
3366f9d8
...
...
@@ -12,7 +12,7 @@ document.addEventListener('DOMContentLoaded', () => {
new
Wikis
();
// eslint-disable-line no-new
new
ShortcutsWiki
();
// eslint-disable-line no-new
new
ZenMode
();
// eslint-disable-line no-new
new
GLForm
(
$
(
'
.wiki-form
'
)
,
true
);
// eslint-disable-line no-new
new
GLForm
(
$
(
'
.wiki-form
'
));
// eslint-disable-line no-new
const
deleteWikiButton
=
document
.
getElementById
(
'
delete-wiki-button
'
);
...
...
app/assets/javascripts/pages/snippets/form.js
View file @
3366f9d8
...
...
@@ -3,6 +3,13 @@ import GLForm from '~/gl_form';
import
ZenMode
from
'
~/zen_mode
'
;
export
default
()
=>
{
new
GLForm
(
$
(
'
.snippet-form
'
),
false
);
// eslint-disable-line no-new
// eslint-disable-next-line no-new
new
GLForm
(
$
(
'
.snippet-form
'
),
{
members
:
false
,
issues
:
false
,
mergeRequests
:
false
,
milestones
:
false
,
labels
:
false
,
});
new
ZenMode
();
// eslint-disable-line no-new
};
app/assets/javascripts/shared/milestones/form.js
View file @
3366f9d8
...
...
@@ -6,5 +6,13 @@ import GLForm from '../../gl_form';
export
default
(
initGFM
=
true
)
=>
{
new
ZenMode
();
// eslint-disable-line no-new
new
DueDateSelectors
();
// eslint-disable-line no-new
new
GLForm
(
$
(
'
.milestone-form
'
),
initGFM
);
// eslint-disable-line no-new
// eslint-disable-next-line no-new
new
GLForm
(
$
(
'
.milestone-form
'
),
{
emojis
:
initGFM
,
members
:
initGFM
,
issues
:
initGFM
,
mergeRequests
:
initGFM
,
milestones
:
initGFM
,
labels
:
initGFM
,
});
};
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