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
cad87a05
Commit
cad87a05
authored
Jan 12, 2018
by
Clement Ho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use common form.js
parent
cedee61b
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 @
cad87a05
...
...
@@ -346,12 +346,12 @@ import initLDAPGroupsSelect from 'ee/ldap_groups_select'; // eslint-disable-line
.
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 @
cad87a05
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 @
cad87a05
File moved
app/assets/javascripts/pages/snippets/new/index.js
View file @
cad87a05
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 @
cedee61b
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