mirror of
https://github.com/maximebf/php-debugbar.git
synced 2025-01-17 21:38:14 +01:00
phpdebugbar-widgets-error is a block element
so I move it to end
This commit is contained in:
parent
7b2006e6e0
commit
4ffaf077ea
@ -40,10 +40,7 @@
|
|||||||
if (stmt.memory_str) {
|
if (stmt.memory_str) {
|
||||||
$('<span title="Memory usage" />').addClass(csscls('memory')).text(stmt.memory_str).appendTo(li);
|
$('<span title="Memory usage" />').addClass(csscls('memory')).text(stmt.memory_str).appendTo(li);
|
||||||
}
|
}
|
||||||
if (typeof(stmt.is_success) != 'undefined' && !stmt.is_success) {
|
if (typeof(stmt.row_count) != 'undefined') {
|
||||||
li.addClass(csscls('error'));
|
|
||||||
li.append($('<span />').addClass(csscls('error')).text("[" + stmt.error_code + "] " + stmt.error_message));
|
|
||||||
} else if (typeof(stmt.row_count) != 'undefined') {
|
|
||||||
$('<span title="Row count" />').addClass(csscls('row-count')).text(stmt.row_count).appendTo(li);
|
$('<span title="Row count" />').addClass(csscls('row-count')).text(stmt.row_count).appendTo(li);
|
||||||
}
|
}
|
||||||
if (typeof(stmt.stmt_id) != 'undefined' && stmt.stmt_id) {
|
if (typeof(stmt.stmt_id) != 'undefined' && stmt.stmt_id) {
|
||||||
@ -66,6 +63,10 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (typeof(stmt.is_success) != 'undefined' && !stmt.is_success) {
|
||||||
|
li.addClass(csscls('error'));
|
||||||
|
li.append($('<span />').addClass(csscls('error')).text("[" + stmt.error_code + "] " + stmt.error_message));
|
||||||
|
}
|
||||||
if (stmt.params && !$.isEmptyObject(stmt.params)) {
|
if (stmt.params && !$.isEmptyObject(stmt.params)) {
|
||||||
var table = $('<table><tr><th colspan="2">Params</th></tr></table>').addClass(csscls('params')).appendTo(li);
|
var table = $('<table><tr><th colspan="2">Params</th></tr></table>').addClass(csscls('params')).appendTo(li);
|
||||||
for (var key in stmt.params) {
|
for (var key in stmt.params) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user