BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
11e059d7
Commit
11e059d7
authored
Jan 12, 2018
by
Clement Ho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use common form.js
parent
dc746510
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
21 deletions
+6
-21
dispatcher.js
app/assets/javascripts/dispatcher.js
+2
-2
index.js
app/assets/javascripts/pages/snippets/edit/index.js
+2
-6
form.js
app/assets/javascripts/pages/snippets/form.js
+0
-0
index.js
app/assets/javascripts/pages/snippets/new/index.js
+2
-6
index.js
app/assets/javascripts/pages/snippets/update/index.js
+0
-7
No files found.
app/assets/javascripts/dispatcher.js
View file @
11e059d7
...
...
@@ -310,12 +310,12 @@ import Activities from './activities';
.
catch
(
fail
);
break
;
case
'snippets:create'
:
import
(
'./pages/snippets/
create
'
)
import
(
'./pages/snippets/
new
'
)
.
then
(
callDefault
)
.
catch
(
fail
);
break
;
case
'snippets:update'
:
import
(
'./pages/snippets/
update
'
)
import
(
'./pages/snippets/
edit
'
)
.
then
(
callDefault
)
.
catch
(
fail
);
break
;
...
...
app/assets/javascripts/pages/snippets/edit/index.js
View file @
11e059d7
import
GLForm
from
'~/gl_form'
;
import
ZenMode
from
'~/zen_mode'
;
import
form
from
'../form'
;
export
default
()
=>
{
new
GLForm
(
$
(
'.snippet-form'
),
false
);
// eslint-disable-line no-new
new
ZenMode
();
// eslint-disable-line no-new
};
export
default
form
;
app/assets/javascripts/pages/snippets/
create/index
.js
→
app/assets/javascripts/pages/snippets/
form
.js
View file @
11e059d7
File moved
app/assets/javascripts/pages/snippets/new/index.js
View file @
11e059d7
import
GLForm
from
'~/gl_form'
;
import
ZenMode
from
'~/zen_mode'
;
import
form
from
'../form'
;
export
default
()
=>
{
new
GLForm
(
$
(
'.snippet-form'
),
false
);
// eslint-disable-line no-new
new
ZenMode
();
// eslint-disable-line no-new
};
export
default
form
;
app/assets/javascripts/pages/snippets/update/index.js
deleted
100644 → 0
View file @
dc746510
import
GLForm
from
'~/gl_form'
;
import
ZenMode
from
'~/zen_mode'
;
export
default
()
=>
{
new
GLForm
(
$
(
'.snippet-form'
),
false
);
// eslint-disable-line no-new
new
ZenMode
();
// eslint-disable-line no-new
};
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