From c66d3f05da6198982b00d19185e21a4cb4abb0c8 Mon Sep 17 00:00:00 2001 From: El RIDO Date: Tue, 23 Apr 2024 22:11:58 +0200 Subject: [PATCH] semantics --- js/privatebin.js | 16 ++++++++-------- tpl/bootstrap.php | 2 +- tpl/bootstrap5.php | 2 +- tpl/page.php | 2 +- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/js/privatebin.js b/js/privatebin.js index 4ebf3463..fdb0902c 100644 --- a/js/privatebin.js +++ b/js/privatebin.js @@ -2391,9 +2391,9 @@ jQuery.PrivateBin = (function($, RawDeflate) { let $editorTabs, $messageEdit, - $messageEditLi, + $messageEditParent, $messagePreview, - $messagePreviewLi, + $messagePreviewParent, $message, isPreview = false; @@ -2434,9 +2434,9 @@ jQuery.PrivateBin = (function($, RawDeflate) { { // toggle buttons $messageEdit.addClass('active'); - $messageEditLi.addClass('active'); + $messageEditParent.addClass('active'); $messagePreview.removeClass('active'); - $messagePreviewLi.removeClass('active'); + $messagePreviewParent.removeClass('active'); $messageEdit.attr('aria-selected','true'); $messagePreview.attr('aria-selected','false'); @@ -2468,9 +2468,9 @@ jQuery.PrivateBin = (function($, RawDeflate) { { // toggle buttons $messageEdit.removeClass('active'); - $messageEditLi.removeClass('active'); + $messageEditParent.removeClass('active'); $messagePreview.addClass('active'); - $messagePreviewLi.addClass('active'); + $messagePreviewParent.addClass('active'); $messageEdit.attr('aria-selected','false'); $messagePreview.attr('aria-selected','true'); @@ -2603,9 +2603,9 @@ jQuery.PrivateBin = (function($, RawDeflate) { // bind click events to tab switchers (a), and save parents (li) $messageEdit = $('#messageedit').click(viewEditor); - $messageEditLi = $messageEdit.parent(); + $messageEditParent = $messageEdit.parent(); $messagePreview = $('#messagepreview').click(viewPreview); - $messagePreviewLi = $messagePreview.parent(); + $messagePreviewParent = $messagePreview.parent(); }; return me; diff --git a/tpl/bootstrap.php b/tpl/bootstrap.php index 35d1c381..0cf27f2f 100644 --- a/tpl/bootstrap.php +++ b/tpl/bootstrap.php @@ -73,7 +73,7 @@ endif; ?> - + diff --git a/tpl/bootstrap5.php b/tpl/bootstrap5.php index e7485aab..fcb79331 100644 --- a/tpl/bootstrap5.php +++ b/tpl/bootstrap5.php @@ -57,7 +57,7 @@ endif; ?> - + diff --git a/tpl/page.php b/tpl/page.php index ac79ec3e..dbbc5631 100644 --- a/tpl/page.php +++ b/tpl/page.php @@ -51,7 +51,7 @@ endif; ?> - +