Skip to content

Commit 6dc7996

Browse files
committed
jQuery ready() deprecation
1 parent d19104c commit 6dc7996

3 files changed

Lines changed: 4 additions & 2 deletions

File tree

plugins/gh-datainmap/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
- Fix voor jQuery deprecation van `ready()` in de backend.
2+
13
**1.10.0 (2021-08-25)**
24

35
- Nieuwe versies van ondersteunende software bibliotheken in gebruik genomen.

src/admin-layers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
*/
1414
import jQuery from 'jquery';
1515
const $ = jQuery;
16-
$(document).ready(function() {
16+
$(function() {
1717
const layerType = $('#gh_dim_layer_type');
1818
if(!layerType) {
1919
return;

src/admin-location.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ $(document).ready(function() {
7979
});
8080

8181
// Location Content Type (Post, Redirect etc.)
82-
$(document).ready(function() {
82+
$(function() {
8383
const allFields = [
8484
'#gh_dim_location_redirect_url'
8585
];

0 commit comments

Comments
 (0)