feature #14229 [WebProfilerBundle] AJAX links (romqin)
This PR was submitted for the 2.6 branch but it was merged into the 2.7 branch instead (closes #14229).
Discussion
----------
[WebProfilerBundle] AJAX links
| Q | A
| ------------- | ---
| Bug fix? | no
| New feature? | yes
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | -
| License | MIT
| Doc PR | -
It is considered as a new feature ? If yes, should I make it on 2.7 ?
Add a link on GET requests:
![capture d ecran 2015-04-06 a 11 47 33](https://cloud.githubusercontent.com/assets/334432/7002965/1ff200fa-dc53-11e4-96de-664572f72b57.png)
Commits
-------
b9062a0
add link on GET requests
This commit is contained in:
commit
b8f2a6b901
@ -109,7 +109,14 @@
|
|||||||
|
|
||||||
var pathCell = document.createElement('td');
|
var pathCell = document.createElement('td');
|
||||||
pathCell.className = 'sf-ajax-request-url';
|
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);
|
pathCell.setAttribute('title', request.url);
|
||||||
row.appendChild(pathCell);
|
row.appendChild(pathCell);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user