1
0
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:
Barry vd. Heuvel 2014-01-13 09:39:56 +01:00
parent ec6a857a30
commit 844f05a722

View File

@ -25,7 +25,7 @@ if (typeof(PhpDebugBar) == 'undefined') {
this.$closebtn = $('<a href="javascript:"><i class="fa fa-times"></i></a>');
this.$table = $('<tbody />');
$('<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.$closebtn.on('click', function() {
@ -86,6 +86,7 @@ if (typeof(PhpDebugBar) == 'undefined') {
$('<tr />')
.append($('<td />').append(a))
.append('<td>' + meta['method'] + '</td>')
.append('<td>' + meta['uri'] + '</td>')
.append('<td>' + meta['datetime'] + '</td>')
.append('<td>' + meta['ip'] + '</td>')
@ -134,4 +135,4 @@ if (typeof(PhpDebugBar) == 'undefined') {
});
})(PhpDebugBar.$);
})(PhpDebugBar.$);