mirror of
https://github.com/maximebf/php-debugbar.git
synced 2025-01-17 21:38:14 +01:00
1b7e7fdbc8
Will not be called if the js vendors are not included. Can be enabled/disabled using JavascriptRenderer::setEnableJqueryNoConflict()
14 lines
620 B
HTML
14 lines
620 B
HTML
<script type="text/javascript">
|
|
jQuery.noConflict(true);
|
|
var phpdebugbar = new PhpDebugBar.DebugBar();
|
|
phpdebugbar.addTab("messages", new PhpDebugBar.DebugBar.Tab({"title":"Messages", "widget": new PhpDebugBar.Widgets.MessagesWidget()}));
|
|
phpdebugbar.addIndicator("time", new PhpDebugBar.DebugBar.Indicator({"icon":"time"}));
|
|
phpdebugbar.setDataMap({
|
|
"messages": ["messages.messages", []],
|
|
"messages:badge": ["messages.count", null],
|
|
"time": ["time", "0s"]
|
|
});
|
|
phpdebugbar.restoreState();
|
|
phpdebugbar.ajaxHandler = new PhpDebugBar.AjaxHandler(phpdebugbar);
|
|
phpdebugbar.ajaxHandler.bindToJquery();
|
|
phpdebugbar.addDataSet( |