From b6e01515cb8c95290fc0a519f27df31bab9c9080 Mon Sep 17 00:00:00 2001 From: kapito Date: Tue, 1 Aug 2017 14:50:09 +0100 Subject: [PATCH] fix deprecated load() function --- CHANGELOG.txt | 1 + docs/releases/1.12.rst | 1 + wagtail/contrib/table_block/static/table_block/js/table.js | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 50d0200863..57c2358f7d 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -18,6 +18,7 @@ Changelog * Fix: Hide the userbar from printed page representation (Eugene Morozov) * Fix: Prevent the page editor footer content from collapsing into two lines unnecessarily (Jack Paine) * Fix: StructBlock values no longer render HTML templates as their `str` representation, to prevent infinite loops in debugging / logging tools (Matt Westcott) + * Fix: Removed deprecated jQuery ``load`` call from TableBlock initialisation (Jack Paine) 1.11.1 (07.07.2017) diff --git a/docs/releases/1.12.rst b/docs/releases/1.12.rst index 5aea5bcb97..1146705537 100644 --- a/docs/releases/1.12.rst +++ b/docs/releases/1.12.rst @@ -38,6 +38,7 @@ Bug fixes * Hide the userbar from printed page representation (Eugene Morozov) * Prevent the page editor footer content from collapsing into two lines unnecessarily (Jack Paine) * StructBlock values no longer render HTML templates as their ``str`` representation, to prevent infinite loops in debugging / logging tools (Matt Westcott) + * Removed deprecated jQuery ``load`` call from TableBlock initialisation (Jack Paine) Upgrade considerations ====================== diff --git a/wagtail/contrib/table_block/static/table_block/js/table.js b/wagtail/contrib/table_block/static/table_block/js/table.js index 3ebbbaab6e..57e1e2ab46 100644 --- a/wagtail/contrib/table_block/static/table_block/js/table.js +++ b/wagtail/contrib/table_block/static/table_block/js/table.js @@ -132,7 +132,7 @@ function initTable(id, tableOptions) { // Apply resize after document is finished loading (parent .sequence-member-inner width is set) if ('resize' in $(window)) { resizeHeight(getHeight()); - $(window).load(function() { + $(window).on('load', function() { $(window).resize(); }); }