1
0
mirror of https://github.com/maximebf/php-debugbar.git synced 2025-07-25 10:41:55 +02:00
Barry vd. Heuvel
2024-02-13 19:55:07 +01:00
parent 5e47525218
commit 8f99b6607e

View File

@@ -134,14 +134,16 @@
})
.appendTo(li);
}
if (stmt.xdebug_link) {
$('<a href="' + stmt.xdebug_link.url + '"></a>').on('click', function (event) {
event.stopPropagation();
if (stmt.xdebug_link.ajax){
event.preventDefault();
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 : ''));
if (stmt.xdebug_link.ajax) {
$('<a title="' + stmt.xdebug_link.url + '"></a>').on('click', function () {
$.ajax(stmt.xdebug_link.url);
}
}).addClass(csscls('editor-link')).appendTo(li);
}).addClass(csscls('editor-link')).appendTo(header);
} else {
$('<a href="' + stmt.xdebug_link.url + '"></a>').addClass(csscls('editor-link')).appendTo(header);
}
header.appendTo(li);
}
var table = $('<table></table>').addClass(csscls('params'));
if (stmt.params && !$.isEmptyObject(stmt.params)) {