Remove es6 code from non-es6 area (#904)
This commit is contained in:
parent
221c363af0
commit
57fff54cd8
1 changed files with 1 additions and 1 deletions
|
|
@ -296,7 +296,7 @@ function handleKeyDown(event) {
|
|||
event.target.value.trim() !== '') {
|
||||
// get a reference to the submit button for the text area (first level comment vs. reply comment)
|
||||
var parentFormId = event.target.parentElement.parentElement.id || event.target.parentElement.id;
|
||||
var submitButton = document.querySelector(`#${parentFormId} input[type="submit"].comment-action-button`);
|
||||
var submitButton = document.querySelector('#' + parentFormId + ' input[type="submit"].comment-action-button');
|
||||
submitButton.click();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue