diff --git a/resources/scripts/app.js b/resources/scripts/app.js index 9dfb3c16b..82479ea2f 100644 --- a/resources/scripts/app.js +++ b/resources/scripts/app.js @@ -43,7 +43,7 @@ function initializeImageViewer() { } } -$(document).ready(function($) { +jQuery(function($) { var historySupport = !!(window.history && window.history.pushState); var appRoot = $("html").attr("data-app"); @@ -72,7 +72,7 @@ $(document).ready(function($) { } //make sure the mobile menu is hidden when window is resized - $( window ).resize(function() { + $( window ).on('resize', function() { $( ".collapse").collapse("hide"); }); diff --git a/resources/scripts/metagrid.js b/resources/scripts/metagrid.js index 7507d5beb..17b891882 100644 --- a/resources/scripts/metagrid.js +++ b/resources/scripts/metagrid.js @@ -1,4 +1,4 @@ -$(document).ready(function () { +jQuery(function () { var personId = window.location.href.match(/\/departmenthistory\/people\/([^/#]+)$/i); if (!personId) {