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
c622252b
Commit
c622252b
authored
Jun 26, 2018
by
Fatih Acet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use refs instead of querySelector.
parent
13a8ad61
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
app/assets/javascripts/diffs/components/diff_line_note_form.vue
...sets/javascripts/diffs/components/diff_line_note_form.vue
+2
-2
No files found.
app/assets/javascripts/diffs/components/diff_line_note_form.vue
View file @
c622252b
...
@@ -44,7 +44,6 @@ export default {
...
@@ -44,7 +44,6 @@ export default {
},
},
mounted
()
{
mounted
()
{
if
(
this
.
isLoggedIn
)
{
if
(
this
.
isLoggedIn
)
{
const
textarea
=
this
.
$el
.
querySelector
(
'
.js-note-text
'
);
const
noteableData
=
this
.
getNoteableData
;
const
noteableData
=
this
.
getNoteableData
;
const
keys
=
[
const
keys
=
[
NOTE_TYPE
,
NOTE_TYPE
,
...
@@ -56,7 +55,7 @@ export default {
...
@@ -56,7 +55,7 @@ export default {
this
.
line
.
lineCode
,
this
.
line
.
lineCode
,
];
];
this
.
autosave
=
new
Autosave
(
$
(
textarea
),
keys
);
this
.
autosave
=
new
Autosave
(
$
(
t
his
.
$refs
.
noteForm
.
$refs
.
t
extarea
),
keys
);
}
}
},
},
methods
:
{
methods
:
{
...
@@ -103,6 +102,7 @@ export default {
...
@@ -103,6 +102,7 @@ export default {
class=
"content discussion-form discussion-form-container discussion-notes"
class=
"content discussion-form discussion-form-container discussion-notes"
>
>
<note-form
<note-form
ref=
"noteForm"
:is-editing=
"true"
:is-editing=
"true"
:line-code=
"line.lineCode"
:line-code=
"line.lineCode"
save-button-title=
"Comment"
save-button-title=
"Comment"
...
...
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