mirror of
https://github.com/maximebf/php-debugbar.git
synced 2025-01-17 13:28:35 +01:00
Add Request Method
This commit is contained in:
parent
ec6a857a30
commit
844f05a722
@ -25,7 +25,7 @@ if (typeof(PhpDebugBar) == 'undefined') {
|
|||||||
this.$closebtn = $('<a href="javascript:"><i class="fa fa-times"></i></a>');
|
this.$closebtn = $('<a href="javascript:"><i class="fa fa-times"></i></a>');
|
||||||
this.$table = $('<tbody />');
|
this.$table = $('<tbody />');
|
||||||
$('<div>PHP DebugBar | Open</div>').addClass(csscls('header')).append(this.$closebtn).appendTo(this.$el);
|
$('<div>PHP DebugBar | Open</div>').addClass(csscls('header')).append(this.$closebtn).appendTo(this.$el);
|
||||||
$('<table><thead><tr><th>ID</th><th>URL</th><th>Date</th><th>IP</th></tr></thead></table>').append(this.$table).appendTo(this.$el);
|
$('<table><thead><tr><th>ID</th><th>Method</th><th>URL</th><th>Date</th><th>IP</th></tr></thead></table>').append(this.$table).appendTo(this.$el);
|
||||||
this.$actions = $('<div />').addClass(csscls('actions')).appendTo(this.$el);
|
this.$actions = $('<div />').addClass(csscls('actions')).appendTo(this.$el);
|
||||||
|
|
||||||
this.$closebtn.on('click', function() {
|
this.$closebtn.on('click', function() {
|
||||||
@ -86,6 +86,7 @@ if (typeof(PhpDebugBar) == 'undefined') {
|
|||||||
|
|
||||||
$('<tr />')
|
$('<tr />')
|
||||||
.append($('<td />').append(a))
|
.append($('<td />').append(a))
|
||||||
|
.append('<td>' + meta['method'] + '</td>')
|
||||||
.append('<td>' + meta['uri'] + '</td>')
|
.append('<td>' + meta['uri'] + '</td>')
|
||||||
.append('<td>' + meta['datetime'] + '</td>')
|
.append('<td>' + meta['datetime'] + '</td>')
|
||||||
.append('<td>' + meta['ip'] + '</td>')
|
.append('<td>' + meta['ip'] + '</td>')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user