Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit af3dcb2

Browse files
committed
Minor Ajax tweaks
1 parent acee052 commit af3dcb2

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/base_js.html.twig

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -169,12 +169,8 @@
169169
infoSpan.textContent = text;
170170
}
171171
} else {
172-
var cell = document.createElement('td');
173-
cell.setAttribute('colspan', '4');
174-
cell.textContent = "No AJAX requests yet.";
175-
var row = document.createElement('tr');
176-
row.appendChild(cell);
177-
tbody.appendChild(row);
172+
var ajaxToolbarPanel = document.querySelectorAll('.sf-toolbar-block-ajax');
173+
ajaxToolbarPanel[0].style.display = 'none';
178174
}
179175
}
180176

src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/toolbar.css.twig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,9 @@
343343
font-size: 12px;
344344
padding: 4px;
345345
}
346+
.sf-toolbar-ajax-requests tr:last-child td {
347+
border-bottom: 0;
348+
}
346349
.sf-toolbar-ajax-requests th {
347350
background-color: #222;
348351
border-bottom: 0;

0 commit comments

Comments
 (0)