Discard changes in legacy js
This commit is contained in:
parent
33a2b8a91f
commit
6bf1708772
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue