[WebProfilerBundle] Update ajax calls in toolbar to add the css error class

This commit is contained in:
Ruben Gonzalez 2015-03-04 00:01:44 +01:00
parent 12cf04f8f3
commit 1ea0f86d9a
2 changed files with 4 additions and 1 deletions

View File

@ -90,6 +90,9 @@
rows.appendChild(row); rows.appendChild(row);
var methodCell = document.createElement('td'); var methodCell = document.createElement('td');
if (request.error) {
methodCell.className = 'sf-ajax-request-error';
}
methodCell.textContent = request.method; methodCell.textContent = request.method;
row.appendChild(methodCell); row.appendChild(methodCell);

View File

@ -315,7 +315,7 @@
text-align: right; text-align: right;
} }
.sf-ajax-request-error { .sf-ajax-request-error {
color: #a33; color: #a33 !important;
} }
.sf-ajax-request-loading { .sf-ajax-request-loading {
-webkit-animation: sf-blink .5s ease-in-out infinite; -webkit-animation: sf-blink .5s ease-in-out infinite;