[frio] Move variable assignment where it belongs in asynchronous comment form submission callback
This commit is contained in:
parent
133de9b524
commit
ed39618da2
1 changed files with 1 additions and 2 deletions
|
@ -362,6 +362,7 @@ $(document).ready(function(){
|
||||||
|
|
||||||
// Comment form submit
|
// Comment form submit
|
||||||
$body.on('submit', '.comment-edit-form', function(e) {
|
$body.on('submit', '.comment-edit-form', function(e) {
|
||||||
|
let $form = $(this);
|
||||||
let id = $form.data('item-id');
|
let id = $form.data('item-id');
|
||||||
|
|
||||||
// Compose page form exception: id is always 0 and form must not be submitted asynchronously
|
// Compose page form exception: id is always 0 and form must not be submitted asynchronously
|
||||||
|
@ -371,8 +372,6 @@ $(document).ready(function(){
|
||||||
|
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
|
||||||
let $form = $(this);
|
|
||||||
|
|
||||||
let $commentSubmit = $form.find('.comment-edit-submit').button('loading');
|
let $commentSubmit = $form.find('.comment-edit-submit').button('loading');
|
||||||
|
|
||||||
unpause();
|
unpause();
|
||||||
|
|
Loading…
Reference in a new issue