|
132 | 132 | var row = document.createElement('tr');
|
133 | 133 | request.DOMNode = row;
|
134 | 134 |
|
| 135 | + var profilerCell = document.createElement('td'); |
| 136 | + profilerCell.textContent = 'n/a'; |
| 137 | + row.appendChild(profilerCell); |
| 138 | +
|
135 | 139 | var methodCell = document.createElement('td');
|
136 | 140 | methodCell.textContent = request.method;
|
137 | 141 | row.appendChild(methodCell);
|
|
164 | 168 | durationCell.textContent = 'n/a';
|
165 | 169 | row.appendChild(durationCell);
|
166 | 170 |
|
167 |
| - var profilerCell = document.createElement('td'); |
168 |
| - profilerCell.textContent = 'n/a'; |
169 |
| - row.appendChild(profilerCell); |
170 |
| -
|
171 | 171 | row.className = 'sf-ajax-request sf-ajax-request-loading';
|
172 | 172 | tbody.insertBefore(row, tbody.firstChild);
|
173 | 173 |
|
|
182 | 182 | pendingRequests--;
|
183 | 183 | var row = request.DOMNode;
|
184 | 184 | /* Unpack the children from the row */
|
185 |
| - var methodCell = row.children[0]; |
186 |
| - var statusCodeCell = row.children[2]; |
| 185 | + var profilerCell = row.children[0]; |
| 186 | + var methodCell = row.children[1]; |
| 187 | + var statusCodeCell = row.children[3]; |
187 | 188 | var statusCodeElem = statusCodeCell.children[0];
|
188 |
| - var durationCell = row.children[4]; |
189 |
| - var profilerCell = row.children[5]; |
| 189 | + var durationCell = row.children[5]; |
190 | 190 |
|
191 | 191 | if (request.error) {
|
192 | 192 | row.className = 'sf-ajax-request sf-ajax-request-error';
|
|
217 | 217 | if (request.profilerUrl) {
|
218 | 218 | profilerCell.textContent = '';
|
219 | 219 | var profilerLink = document.createElement('a');
|
220 |
| - profilerLink.setAttribute('href', request.profilerUrl); |
| 220 | + profilerLink.setAttribute('href', request.statusCode < 400 ? request.profilerUrl : request.profilerUrl + '?panel=exception'); |
221 | 221 | profilerLink.textContent = request.profile;
|
222 | 222 | profilerCell.appendChild(profilerLink);
|
223 | 223 | }
|
|
0 commit comments