From 4f8d2c2d385c0bed50b3f0ae27ba56b19b875395 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Filip=20Tron=C3=AD=C4=8Dek?= Date: Fri, 11 Dec 2020 17:55:33 +0100 Subject: [PATCH] Remove extra semicolons --- animations.js | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/animations.js b/animations.js index 22027fd..cfcfe2b 100644 --- a/animations.js +++ b/animations.js @@ -119,8 +119,8 @@ $('#audioSource').on('mousedown touchend focusin focusout', (_e) => { $('#multiselect-trigger').data('state', '1').addClass('open').removeClass('closed'); $('#multiselect-trigger').find('.chevron').removeClass('bottom'); $('#multiselect-trigger').parent().find('.multiselect-contents').show(); - $('#multiselect-trigger').parent().find('.multiselect-contents').find('input[type="checkbox"]').parent().show();; - $('#multiselect-trigger').parent().find('.multiselect-contents').find('input[type="checkbox"]').show();; + $('#multiselect-trigger').parent().find('.multiselect-contents').find('input[type="checkbox"]').parent().show(); + $('#multiselect-trigger').parent().find('.multiselect-contents').find('input[type="checkbox"]').show(); } // e.preventDefault(); }); @@ -132,8 +132,8 @@ $('#audioSource3').on('mousedown touchend focusin focusout', (_e) => { $('#multiselect-trigger3').attr('data-state', '1').addClass('open').removeClass('closed'); $('#multiselect-trigger3').find('.chevron').removeClass('bottom'); $('#multiselect-trigger3').parent().find('.multiselect-contents').show(); - $('#multiselect-trigger3').parent().find('.multiselect-contents').find('input[type="checkbox"]').parent().show();; - $('#multiselect-trigger3').parent().find('.multiselect-contents').find('input[type="checkbox"]').show();; + $('#multiselect-trigger3').parent().find('.multiselect-contents').find('input[type="checkbox"]').parent().show(); + $('#multiselect-trigger3').parent().find('.multiselect-contents').find('input[type="checkbox"]').show(); } // e.preventDefault(); }); @@ -146,14 +146,14 @@ $('#multiselect-trigger').on('mousedown touchend focusin focusout', function (e) $(this).data('state', '1').addClass('open').removeClass('closed'); $(this).find('.chevron').removeClass('bottom'); $(this).parent().find('.multiselect-contents').show(); - $(this).parent().find('.multiselect-contents').find('input[type="checkbox"]').parent().show();; - $(this).parent().find('.multiselect-contents').find('input[type="checkbox"]').show();; + $(this).parent().find('.multiselect-contents').find('input[type="checkbox"]').parent().show(); + $(this).parent().find('.multiselect-contents').find('input[type="checkbox"]').show(); } else { // close the dropdown $(this).data('state', '0').addClass('closed').removeClass('open'); $(this).find('.chevron').addClass('bottom'); - $(this).parent().find('.multiselect-contents').find('input[type="checkbox"]').not(":checked").parent().hide();; - $(this).parent().find('.multiselect-contents').find('input[type="checkbox"]').hide();; + $(this).parent().find('.multiselect-contents').find('input[type="checkbox"]').not(":checked").parent().hide(); + $(this).parent().find('.multiselect-contents').find('input[type="checkbox"]').hide(); } e.preventDefault(); }); // multiselect dropdowns @@ -166,13 +166,13 @@ $('#multiselect-trigger3').on('mousedown touchend focusin focusout', function (e $(this).attr('data-state', '1').addClass('open').removeClass('closed'); $(this).find('.chevron').removeClass('bottom'); $(this).parent().find('.multiselect-contents').show(); - $(this).parent().find('.multiselect-contents').find('input[type="checkbox"]').parent().show();; - $(this).parent().find('.multiselect-contents').find('input[type="checkbox"]').show();; + $(this).parent().find('.multiselect-contents').find('input[type="checkbox"]').parent().show(); + $(this).parent().find('.multiselect-contents').find('input[type="checkbox"]').show(); } else { // close the dropdown $(this).attr('data-state', '0').addClass('closed').removeClass('open'); $(this).find('.chevron').addClass('bottom'); - $(this).parent().find('.multiselect-contents').find('input[type="checkbox"]').not(":checked").parent().hide();; - $(this).parent().find('.multiselect-contents').find('input[type="checkbox"]').hide();; + $(this).parent().find('.multiselect-contents').find('input[type="checkbox"]').not(":checked").parent().hide(); + $(this).parent().find('.multiselect-contents').find('input[type="checkbox"]').hide(); } e.preventDefault(); });