Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 70a38cf

Browse files
committed
[WebProfilerBundle] Add ajax request number
1 parent 5ed68ee commit 70a38cf

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/ajax.html.twig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
<table class="sf-toolbar-ajax-requests">
1515
<thead>
1616
<tr>
17+
<th>#</th>
1718
<th>Profile</th>
1819
<th>Method</th>
1920
<th>Type</th>

src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/base_js.html.twig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,10 @@
136136
var row = document.createElement('tr');
137137
request.DOMNode = row;
138138
139+
var requestNumberCell = document.createElement('td');
140+
requestNumberCell.textContent = index + 1;
141+
row.appendChild(requestNumberCell);
142+
139143
var profilerCell = document.createElement('td');
140144
profilerCell.textContent = 'n/a';
141145
row.appendChild(profilerCell);

0 commit comments

Comments
 (0)