Skip to content

Commit

Permalink
Add back jquery on ready wrappers
Browse files Browse the repository at this point in the history
  • Loading branch information
khamer committed May 13, 2019
1 parent 48577d9 commit 3000379
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 11 deletions.
6 changes: 4 additions & 2 deletions resources/styles/molecules/accordion/accordion.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
$('.accordion').accordion({
singleOpen: false
$(function() {
$('.accordion').accordion({
singleOpen: false
});
});
4 changes: 3 additions & 1 deletion resources/styles/molecules/tabs/tabs.js
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
$('.tabs').tabs();
$(function() {
$('.tabs').tabs();
});
6 changes: 4 additions & 2 deletions resources/styles/organisms/carousel/carousel.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
$('.carousel').slick({
dots: true,
$(function() {
$('.carousel').slick({
dots: true,
});
});
8 changes: 5 additions & 3 deletions resources/styles/organisms/primary-header/primary-header.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
$('header.primary').stickyHeader();
$('nav.primary').dropdown();
$('.mobile').mobileNavigation();
$(function() {
$('header.primary').stickyHeader();
$('nav.primary').dropdown();
$('.mobile').mobileNavigation();
});
8 changes: 5 additions & 3 deletions resources/styles/utilities/sticky-element/sticky-element.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
$('.sticky-element').fix({
duration: 100,
offset: 0,
$(function() {
$('.sticky-element').fix({
duration: 100,
offset: 0,
});
});

0 comments on commit 3000379

Please sign in to comment.