From 6bf17087720863b766f88d5a19e3826b3577b3a1 Mon Sep 17 00:00:00 2001 From: Juan Jose Gonzalez Date: Sat, 11 Feb 2023 17:30:55 +0100 Subject: [PATCH] Discard changes in legacy js --- client/src/legacy/CommentsInterface.js | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/client/src/legacy/CommentsInterface.js b/client/src/legacy/CommentsInterface.js index 18bafbe..d3a8fc0 100755 --- a/client/src/legacy/CommentsInterface.js +++ b/client/src/legacy/CommentsInterface.js @@ -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