Discard changes in legacy js

This commit is contained in:
Juan Jose Gonzalez 2023-02-11 17:30:55 +01:00
parent 33a2b8a91f
commit 6bf1708772
1 changed files with 0 additions and 21 deletions

View File

@ -75,27 +75,6 @@
}
});
/**
* Toggle on/off update form
*/
$('.comments-holder').on('click', '.comment-update-link', function (e) {
const allForms = $('.comment-update-form-holder');
const formID = `#${$(this).attr('aria-controls')}`;
const form = $(formID).closest('.comment-update-form-holder');
$(this).attr('aria-expanded', (i, attr) => (attr === 'true' ? 'false' : 'true'));
// Prevent focus
e.preventDefault();
if (form.is(':visible')) {
allForms.slideUp();
} else {
allForms.not(form).slideUp();
form.slideDown();
}
});
/**
* Clicking one of the metalinks performs the operation via ajax
* this inclues the spam and approve links