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
Jérome Perrin
gitlab-ce
Commits
a432ae9d
Commit
a432ae9d
authored
Aug 04, 2017
by
Filipa Lacerda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tests
parent
667f8b53
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
4 deletions
+5
-4
app/assets/javascripts/notes/components/issue_note_form.vue
app/assets/javascripts/notes/components/issue_note_form.vue
+1
-1
spec/javascripts/awards_handler_spec.js
spec/javascripts/awards_handler_spec.js
+1
-0
spec/javascripts/behaviors/quick_submit_spec.js
spec/javascripts/behaviors/quick_submit_spec.js
+3
-3
No files found.
app/assets/javascripts/notes/components/issue_note_form.vue
View file @
a432ae9d
...
...
@@ -118,7 +118,7 @@
</div>
<div
class=
"flash-container timeline-content"
></div>
<form
class=
"edit-note common-note-form"
>
class=
"edit-note common-note-form
js-vue-quick-submit
"
>
<markdown-field
:markdown-preview-url=
"markdownPreviewUrl"
:markdown-docs=
"markdownDocsUrl"
...
...
spec/javascripts/awards_handler_spec.js
View file @
a432ae9d
...
...
@@ -28,6 +28,7 @@ import '~/lib/utils/common_utils';
preloadFixtures
(
'
issues/issue_with_comment.html.raw
'
);
beforeEach
(
function
(
done
)
{
loadFixtures
(
'
issues/issue_with_comment.html.raw
'
);
$
(
'
body
'
).
data
(
'
page
'
,
'
projects:issues:show
'
);
loadAwardsHandler
(
true
).
then
((
obj
)
=>
{
awardsHandler
=
obj
;
spyOn
(
awardsHandler
,
'
postEmoji
'
).
and
.
callFake
((
button
,
url
,
emoji
,
cb
)
=>
cb
());
...
...
spec/javascripts/behaviors/quick_submit_spec.js
View file @
a432ae9d
...
...
@@ -38,19 +38,19 @@ import '~/behaviors/quick_submit';
return
expect
(
this
.
spies
.
submit
).
not
.
toHaveBeenTriggered
();
});
it
(
'
disables input of type submit
'
,
function
()
{
const
submitButton
=
$
(
'
.js-quick-submit input[type=submit]
'
);
const
submitButton
=
$
(
'
.js-
vue-
quick-submit input[type=submit]
'
);
this
.
textarea
.
trigger
(
keydownEvent
());
expect
(
submitButton
).
toBeDisabled
();
});
it
(
'
disables button of type submit
'
,
function
()
{
const
submitButton
=
$
(
'
.js-quick-submit input[type=submit]
'
);
const
submitButton
=
$
(
'
.js-
vue-
quick-submit input[type=submit]
'
);
this
.
textarea
.
trigger
(
keydownEvent
());
expect
(
submitButton
).
toBeDisabled
();
});
it
(
'
only clicks one submit
'
,
function
()
{
const
existingSubmit
=
$
(
'
.js-quick-submit input[type=submit]
'
);
const
existingSubmit
=
$
(
'
.js-
vue-
quick-submit input[type=submit]
'
);
// Add an extra submit button
const
newSubmit
=
$
(
'
<button type="submit">Submit it</button>
'
);
newSubmit
.
insertAfter
(
this
.
textarea
);
...
...
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