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
5ff870a0
Unverified
Commit
5ff870a0
authored
Jun 25, 2015
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move duplicate js functionality into IssuableForm
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
2d31568b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
8 deletions
+6
-8
dispatcher.js.coffee
app/assets/javascripts/dispatcher.js.coffee
+2
-8
issuable_form.js.coffee
app/assets/javascripts/issuable_form.js.coffee
+4
-0
No files found.
app/assets/javascripts/dispatcher.js.coffee
View file @
5ff870a0
...
...
@@ -31,20 +31,14 @@ class Dispatcher
when
'projects:compare:show'
new
Diff
()
when
'projects:issues:new'
,
'projects:issues:edit'
GitLab
.
GfmAutoComplete
.
setup
()
shortcut_handler
=
new
ShortcutsNavigation
()
new
ZenMode
()
new
DropzoneInput
(
$
(
'.issue-form'
))
if
page
==
'projects:issues:new'
new
IssuableForm
(
$
(
'.issue-form'
))
new
IssuableForm
(
$
(
'.issue-form'
))
when
'projects:merge_requests:new'
,
'projects:merge_requests:edit'
GitLab
.
GfmAutoComplete
.
setup
()
new
Diff
()
shortcut_handler
=
new
ShortcutsNavigation
()
new
ZenMode
()
new
DropzoneInput
(
$
(
'.merge-request-form'
))
if
page
==
'projects:merge_requests:new'
new
IssuableForm
(
$
(
'.merge-request-form'
))
new
IssuableForm
(
$
(
'.merge-request-form'
))
when
'projects:merge_requests:show'
new
Diff
()
shortcut_handler
=
new
ShortcutsIssuable
()
...
...
app/assets/javascripts/issuable_form.js.coffee
View file @
5ff870a0
class
@
IssuableForm
constructor
:
(
@
form
)
->
GitLab
.
GfmAutoComplete
.
setup
()
new
UsersSelect
()
new
ZenMode
()
@
titleField
=
@
form
.
find
(
"input[name*='[title]']"
)
@
descriptionField
=
@
form
.
find
(
"textarea[name*='[description]']"
)
...
...
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