Skip to content

Commit

Permalink
fix(scripts): deprecations in jquery usage
Browse files Browse the repository at this point in the history
  • Loading branch information
line-o committed Jan 30, 2025
1 parent eb118b5 commit e7905d3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions resources/scripts/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ function initializeImageViewer() {
}
}

$(document).ready(function($) {
jQuery(function($) {
var historySupport = !!(window.history && window.history.pushState);
var appRoot = $("html").attr("data-app");

Expand Down Expand Up @@ -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");
});

Expand Down
2 changes: 1 addition & 1 deletion resources/scripts/metagrid.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
$(document).ready(function () {
jQuery(function () {

var personId = window.location.href.match(/\/departmenthistory\/people\/([^/#]+)$/i);
if (!personId) {
Expand Down

0 comments on commit e7905d3

Please sign in to comment.