diff --git a/src/DebugBar/Resources/widgets/sqlqueries/widget.js b/src/DebugBar/Resources/widgets/sqlqueries/widget.js index d107f1b7..504629a7 100644 --- a/src/DebugBar/Resources/widgets/sqlqueries/widget.js +++ b/src/DebugBar/Resources/widgets/sqlqueries/widget.js @@ -128,13 +128,13 @@ } if (typeof(stmt.xdebug_link) !== 'undefined' && stmt.xdebug_link) { var header = $('').addClass(csscls('filename')).text(stmt.xdebug_link.filename + ( stmt.xdebug_link.line ? "#" + stmt.xdebug_link.line : '')); - if (stmt.xdebug_link.ajax) { - $('').on('click', function () { + $('').on('click', function () { + event.stopPropagation(); + if (stmt.xdebug_link.ajax) { fetch(stmt.xdebug_link.url); - }).addClass(csscls('editor-link')).appendTo(header); - } else { - $('').addClass(csscls('editor-link')).appendTo(header); - } + event.preventDefault(); + } + }).addClass(csscls('editor-link')).appendTo(header); header.appendTo(li); } var table = $('
').addClass(csscls('params'));