add link on GET requests

This commit is contained in:
Romain Gautier 2015-04-06 11:47:04 +02:00 committed by Fabien Potencier
parent 30b31611a5
commit b9062a0c87
1 changed files with 8 additions and 1 deletions

View File

@ -109,7 +109,14 @@
var pathCell = document.createElement('td');
pathCell.className = 'sf-ajax-request-url';
pathCell.textContent = request.url;
if ('GET' === request.method) {
var pathLink = document.createElement('a');
pathLink.setAttribute('href', request.url);
pathLink.textContent = request.url;
pathCell.appendChild(pathLink);
} else {
pathCell.textContent = request.url;
}
pathCell.setAttribute('title', request.url);
row.appendChild(pathCell);