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
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
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
21 deletions
+6
-21
app/assets/javascripts/dispatcher.js
app/assets/javascripts/dispatcher.js
+2
-2
app/assets/javascripts/pages/snippets/edit/index.js
app/assets/javascripts/pages/snippets/edit/index.js
+2
-6
app/assets/javascripts/pages/snippets/form.js
app/assets/javascripts/pages/snippets/form.js
+0
-0
app/assets/javascripts/pages/snippets/new/index.js
app/assets/javascripts/pages/snippets/new/index.js
+2
-6
app/assets/javascripts/pages/snippets/update/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';
...
@@ -310,12 +310,12 @@ import Activities from './activities';
.
catch
(
fail
);
.
catch
(
fail
);
break
;
break
;
case
'
snippets:create
'
:
case
'
snippets:create
'
:
import
(
'
./pages/snippets/
create
'
)
import
(
'
./pages/snippets/
new
'
)
.
then
(
callDefault
)
.
then
(
callDefault
)
.
catch
(
fail
);
.
catch
(
fail
);
break
;
break
;
case
'
snippets:update
'
:
case
'
snippets:update
'
:
import
(
'
./pages/snippets/
update
'
)
import
(
'
./pages/snippets/
edit
'
)
.
then
(
callDefault
)
.
then
(
callDefault
)
.
catch
(
fail
);
.
catch
(
fail
);
break
;
break
;
...
...
app/assets/javascripts/pages/snippets/edit/index.js
View file @
11e059d7
import
GLForm
from
'
~/gl_form
'
;
import
form
from
'
../form
'
;
import
ZenMode
from
'
~/zen_mode
'
;
export
default
()
=>
{
export
default
form
;
new
GLForm
(
$
(
'
.snippet-form
'
),
false
);
// eslint-disable-line no-new
new
ZenMode
();
// eslint-disable-line no-new
};
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
form
from
'
../form
'
;
import
ZenMode
from
'
~/zen_mode
'
;
export
default
()
=>
{
export
default
form
;
new
GLForm
(
$
(
'
.snippet-form
'
),
false
);
// eslint-disable-line no-new
new
ZenMode
();
// eslint-disable-line no-new
};
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