| Server IP : 85.158.181.41 / Your IP : 216.73.217.12 Web Server : Apache System : Linux cloud9-vm129 6.1.178+1-ph #ph SMP PREEMPT_DYNAMIC Wed Jul 29 09:00:54 UTC 2026 x86_64 User : moncbefd ( 1024) PHP Version : 7.3.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/moncbefd/www.moneta.at/GXModules/Gambio/DebugBar/Shop/ |
Upload File : |
/* --------------------------------------------------------------
DebugBar.js 2018-02-23
Gambio GmbH
http://www.gambio.de
Copyright (c) 2018 Gambio GmbH
Released under the GNU General Public License (Version 2)
[http://www.gnu.org/licenses/gpl-2.0.html]
--------------------------------------------------------------
*/
/**
* Debug Bar JavaScript Enhancements
*
* This module will perform some adjustments to the default PHP Debug Bar instance.
*/
$(function () {
'use strict';
var $debugBar = $('.phpdebugbar');
if (!$debugBar.length) {
return; // The Debug Bar is not loaded on this page or could not be detected.
}
// Remove the message counter from "Help" section.
var $help = $debugBar.find('.phpdebugbar-text').filter(function () {
return $(this).text().indexOf('Help') !== -1;
});
if ($help.length) {
$help.next().remove(); // Remove the counter element.
}
// Remove unnecessary line break element added by the Debug Bar when minimized.
$debugBar.on('click', '.phpdebugbar-close-btn', function () {
$debugBar.next('br').remove();
});
$debugBar.on('click', '.phpdebugbar-restore-btn', function () {
$('<br/>').insertAfter($debugBar);
});
if ($debugBar.hasClass('phpdebugbar-closed')) {
$debugBar.next('br').remove();
}
// Correct initial display of Debug Bar in admin layout pages.
if ($('aside#main-menu').length) {
setTimeout(function () {
phpdebugbar.resize();
}, 2000);
}
// Set default initial Debug Bar state to minimized.
phpdebugbar.minimize();
});