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
9c4a06a8
Unverified
Commit
9c4a06a8
authored
Apr 05, 2017
by
Luke "Jared" Bennett
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix close buttob bug when toggling dropdown
parent
09330dd1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
gl_form.js
app/assets/javascripts/gl_form.js
+4
-0
_form.html.haml
app/views/projects/notes/_form.html.haml
+1
-1
No files found.
app/assets/javascripts/gl_form.js
View file @
9c4a06a8
...
...
@@ -30,6 +30,10 @@ GLForm.prototype.setupForm = function() {
this
.
form
.
addClass
(
'gfm-form'
);
// remove notify commit author checkbox for non-commit notes
gl
.
utils
.
disableButtonIfEmptyField
(
this
.
form
.
find
(
'.js-note-text'
),
this
.
form
.
find
(
'.js-comment-button'
));
const
newDiscussionToggle
=
this
.
form
.
find
(
'.js-note-new-discussion'
);
if
(
newDiscussionToggle
)
gl
.
utils
.
disableButtonIfEmptyField
(
this
.
form
.
find
(
'.js-note-text'
),
newDiscussionToggle
);
gl
.
GfmAutoComplete
.
setup
(
this
.
form
.
find
(
'.js-gfm-input'
));
new
DropzoneInput
(
this
.
form
);
autosize
(
this
.
textarea
);
...
...
app/views/projects/notes/_form.html.haml
View file @
9c4a06a8
...
...
@@ -31,7 +31,7 @@
.btn-group.append-right-10.comment-type-dropdown.js-comment-type-dropdown
=
f
.
submit
'Comment'
,
class:
"btn btn-nr btn-create comment-btn js-comment-button js-comment-submit-button"
-
if
@note
.
can_be_discussion_note?
=
button_tag
type:
'button'
,
class:
'btn btn-nr dropdown-toggle comment-btn js-
comment-button js-
note-new-discussion'
,
data:
{
'dropdown-trigger'
=>
'#resolvable-comment-menu'
}
do
=
button_tag
type:
'button'
,
class:
'btn btn-nr dropdown-toggle comment-btn js-note-new-discussion'
,
data:
{
'dropdown-trigger'
=>
'#resolvable-comment-menu'
}
do
=
icon
(
'caret-down'
)
%ul
#resolvable-comment-menu
.dropdown-menu
{
data:
{
dropdown:
true
}
}
%li
#comment
{
data:
{
value:
''
,
'button-text'
=>
'Comment'
,
'secondary-button-text'
=>
'Comment & close merge request'
},
class:
'droplab-item-selected'
}
...
...
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