From 71278a56304a5874bb9a94a5ea8b804d9a50195c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Deszert-K=C5=82osowski?= Date: Mon, 1 Feb 2021 10:20:26 +0100 Subject: [PATCH] changed .js to not rely on 'jQuery' global (use '$' instead) --- src/Resources/public/js/bitbag-catalog-rules.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Resources/public/js/bitbag-catalog-rules.js b/src/Resources/public/js/bitbag-catalog-rules.js index c351a20..be09d39 100755 --- a/src/Resources/public/js/bitbag-catalog-rules.js +++ b/src/Resources/public/js/bitbag-catalog-rules.js @@ -1,4 +1,4 @@ -(function($) { +(function() { $(document).ready(function () { $('.bitbag-rules#product_association_rules a[data-form-collection="add"]').on('click', (event) => { const name = $(event.target).closest('form').attr('name'); @@ -8,4 +8,4 @@ }); }); -})(jQuery); +})();