Permalink
Browse files

[WebProfilerBundle] Use panel URL for debugging toolbar

  • Loading branch information...
1 parent fe13a6c commit 847c665e69f8ca35f46986bdd49b92d12368b7de @alexandresalome alexandresalome committed Sep 17, 2011
@@ -3,6 +3,7 @@
(function () {
var wdt, xhr;
var url = '{{ path("_wdt", { "token": token }) }}';
+ var urlPanel = '{{ path("_profiler", { "token": token }) }}';
wdt = document.getElementById('sfwdt{{ token }}');
if (window.XMLHttpRequest) {
xhr = new XMLHttpRequest();
@@ -16,7 +17,7 @@
wdt.innerHTML = xhr.responseText;
wdt.style.display = 'block';
} else if (4 === xhr.readyState && xhr.status != 200) {
- confirm('An error occured while loading the debug toolbar ('+xhr.status+': '+xhr.statusText.') .\n\nDo you want to open the page ?') && (window.location = url);
+ confirm('An error occured while loading the debug toolbar ('+xhr.status+': '+xhr.statusText+') .\n\nDo you want to open the page ?') && (window.location = urlPanel);
}
};
xhr.send('');

0 comments on commit 847c665

Please sign in to comment.