Welcome Guest, Not a member yet? Register   Sign In
Filters:after appears to be ignored
#15

(This post was last modified: 04-24-2020, 10:34 AM by Gary.)

For folk navigating with a lot of JavaScript- for possible use/comment/correction/criticism, how I've hacked Toolsbar.php is shown below.

So far it doesn't appear to have had any untoward side-effects.  Be aware that this still doesn't updated the on-screen toolbar with every JavaScript request/response, but does permit an update with a JavaScript-induced page-nagivation update (so it simply moves some of the previously header-only feedback to on-screen feedback)).

From:
Code:
     $format = $response->getHeaderLine('content-type');
    
     // Non-HTML formats should not include the debugbar
     // then we send headers saying where to find the debug data
     // for this response

     if ($request->isAJAX() || strpos($format, 'html') === false)
     {

To:
Code:
     $response->populateHeaders();
     $format = $response->getHeaderLine('content-type');

     // Non-HTML formats should not include the debugbar
     // then we send headers saying where to find the debug data
     // for this response

     if (strpos($format, 'html') === false)
     {
Reply


Messages In This Thread
Filters:after appears to be ignored - by Gary - 04-20-2020, 06:33 AM
RE: Filters:after appears to be ignored - by Gary - 04-20-2020, 07:21 AM
RE: Filters:after appears to be ignored - by Gary - 04-21-2020, 03:50 AM
RE: Filters:after appears to be ignored - by Gary - 04-21-2020, 06:39 AM
RE: Filters:after appears to be ignored - by Gary - 04-21-2020, 08:48 AM
RE: Filters:after appears to be ignored - by Gary - 04-21-2020, 09:21 AM
RE: Filters:after appears to be ignored - by Gary - 04-22-2020, 04:38 AM
RE: Filters:after appears to be ignored - by Leo - 04-23-2020, 12:54 AM
RE: Filters:after appears to be ignored - by Gary - 04-23-2020, 03:14 AM
RE: Filters:after appears to be ignored - by Leo - 04-23-2020, 05:14 AM
RE: Filters:after appears to be ignored - by Gary - 04-24-2020, 09:07 AM
RE: Filters:after appears to be ignored - by Gary - 04-28-2020, 10:09 AM
RE: Filters:after appears to be ignored - by Leo - 04-29-2020, 01:07 AM
RE: Filters:after appears to be ignored - by Gary - 04-30-2020, 06:10 AM
RE: Filters:after appears to be ignored - by Leo - 04-30-2020, 12:44 PM



Theme © iAndrew 2016 - Forum software by © MyBB