mirror of
https://github.com/maximebf/php-debugbar.git
synced 2025-01-16 21:08:34 +01:00
Prevent query backtrace showing on editor link click (#667)
This commit is contained in:
parent
643767a32f
commit
ec4979077f
@ -128,13 +128,13 @@
|
|||||||
}
|
}
|
||||||
if (typeof(stmt.xdebug_link) !== 'undefined' && stmt.xdebug_link) {
|
if (typeof(stmt.xdebug_link) !== 'undefined' && stmt.xdebug_link) {
|
||||||
var header = $('<span title="Filename" />').addClass(csscls('filename')).text(stmt.xdebug_link.filename + ( stmt.xdebug_link.line ? "#" + stmt.xdebug_link.line : ''));
|
var header = $('<span title="Filename" />').addClass(csscls('filename')).text(stmt.xdebug_link.filename + ( stmt.xdebug_link.line ? "#" + stmt.xdebug_link.line : ''));
|
||||||
if (stmt.xdebug_link.ajax) {
|
$('<a href="' + stmt.xdebug_link.url + '"></a>').on('click', function () {
|
||||||
$('<a title="' + stmt.xdebug_link.url + '"></a>').on('click', function () {
|
event.stopPropagation();
|
||||||
|
if (stmt.xdebug_link.ajax) {
|
||||||
fetch(stmt.xdebug_link.url);
|
fetch(stmt.xdebug_link.url);
|
||||||
}).addClass(csscls('editor-link')).appendTo(header);
|
event.preventDefault();
|
||||||
} else {
|
}
|
||||||
$('<a href="' + stmt.xdebug_link.url + '"></a>').addClass(csscls('editor-link')).appendTo(header);
|
}).addClass(csscls('editor-link')).appendTo(header);
|
||||||
}
|
|
||||||
header.appendTo(li);
|
header.appendTo(li);
|
||||||
}
|
}
|
||||||
var table = $('<table></table>').addClass(csscls('params'));
|
var table = $('<table></table>').addClass(csscls('params'));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user