Merge pull request #8698 from MrPetovan/bug/8685-frio-compose-disable-asynchronous

[frio] Move variable assignment where it belongs in asynchronous comment form submission callback
This commit is contained in:
Hypolite Petovan 2020-05-27 09:09:10 -04:00 committed by GitHub
commit c7367b5902
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -362,6 +362,7 @@ $(document).ready(function(){
// Comment form submit
$body.on('submit', '.comment-edit-form', function(e) {
let $form = $(this);
let id = $form.data('item-id');
// Compose page form exception: id is always 0 and form must not be submitted asynchronously
@ -371,8 +372,6 @@ $(document).ready(function(){
e.preventDefault();
let $form = $(this);
let $commentSubmit = $form.find('.comment-edit-submit').button('loading');
unpause();