Fixed a few warnings about deprecated jQuery features

This commit is contained in:
Yahnis Elsts 2020-12-09 17:07:15 +02:00
parent 4bd0a820d1
commit 4e59df1958
2 changed files with 3 additions and 3 deletions

View File

@ -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'
);
}

View File

@ -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;
});