From 4e59df1958b3ebc854a7808c8a8fc2ec80598ed1 Mon Sep 17 00:00:00 2001 From: Yahnis Elsts Date: Wed, 9 Dec 2020 17:07:15 +0200 Subject: [PATCH] Fixed a few warnings about deprecated jQuery features --- Puc/v4p10/DebugBar/Extension.php | 2 +- js/debug-bar.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Puc/v4p10/DebugBar/Extension.php b/Puc/v4p10/DebugBar/Extension.php index e3e6db7..18c484e 100644 --- a/Puc/v4p10/DebugBar/Extension.php +++ b/Puc/v4p10/DebugBar/Extension.php @@ -52,7 +52,7 @@ if ( !class_exists('Puc_v4p10_DebugBar_Extension', false) ): 'puc-debug-bar-js-v4', $this->getLibraryUrl("/js/debug-bar.js"), array('jquery'), - '20170516' + '20201209' ); } diff --git a/js/debug-bar.js b/js/debug-bar.js index b8435db..2452c02 100644 --- a/js/debug-bar.js +++ b/js/debug-bar.js @@ -20,12 +20,12 @@ jQuery(function($) { ); } - $('.puc-debug-bar-panel-v4 input[name="puc-check-now-button"]').click(function() { + $('.puc-debug-bar-panel-v4 input[name="puc-check-now-button"]').on('click', function() { runAjaxAction(this, 'puc_v4_debug_check_now'); return false; }); - $('.puc-debug-bar-panel-v4 input[name="puc-request-info-button"]').click(function() { + $('.puc-debug-bar-panel-v4 input[name="puc-request-info-button"]').on('click', function() { runAjaxAction(this, 'puc_v4_debug_request_info'); return false; });