From 29c8b9c942a8500323a667e4447d1a1c1424ea29 Mon Sep 17 00:00:00 2001 From: "Barry vd. Heuvel" Date: Wed, 20 Mar 2024 13:35:41 +0100 Subject: [PATCH] Use fetch instead of jQuery ajax (#630) --- src/DebugBar/Resources/openhandler.js | 28 +++++++++++-------- src/DebugBar/Resources/widgets.js | 2 +- .../Resources/widgets/sqlqueries/widget.js | 2 +- .../Resources/widgets/templates/widget.js | 2 +- 4 files changed, 20 insertions(+), 14 deletions(-) diff --git a/src/DebugBar/Resources/openhandler.js b/src/DebugBar/Resources/openhandler.js index 5633043..3fd11ce 100644 --- a/src/DebugBar/Resources/openhandler.js +++ b/src/DebugBar/Resources/openhandler.js @@ -58,7 +58,7 @@ if (typeof(PhpDebugBar) == 'undefined') { self.hide(); }); }); - + this.addSearch(); this.$overlay = $('
').addClass(csscls('overlay')).hide().appendTo('body'); @@ -72,7 +72,7 @@ if (typeof(PhpDebugBar) == 'undefined') { this.$loadmorebtn.show(); this.find({}, 0, this.handleFind.bind(this)); }, - + addSearch: function(){ var self = this; var searchBtn = $('