Skip to content

Commit

Permalink
changed .js to not rely on 'jQuery' global (use '$' instead)
Browse files Browse the repository at this point in the history
  • Loading branch information
leszczuu authored Feb 1, 2021
1 parent eb8e895 commit 71278a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Resources/public/js/bitbag-catalog-rules.js
Original file line number Diff line number Diff line change
@@ -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');
Expand All @@ -8,4 +8,4 @@
});

});
})(jQuery);
})();

0 comments on commit 71278a5

Please sign in to comment.