10000 Partial revert of b6a7167 JS syntax requires space in `else if`. · mshtukin/symfony@628016d · GitHub
[go: up one dir, main page]

Skip to content

Commit 628016d

Browse files
author
Drak
committed
Partial revert of b6a7167 JS syntax requires space in else if.
1 parent b6a7167 commit 628016d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/time.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@
127127
if ('section.child' == event.name) {
128128
context.fillStyle = colors.child_sections;
129129
context.fillRect(x + period.begin * ratio, 0, (period.end - period.begin) * ratio, height);
130-
} elseif ('section' == event.category) {
130+
} else if ('section' == event.category) {
131131
context.beginPath();
132132
context.strokeStyle = "#dfdfdf";
133133
context.moveTo(x + period.begin * ratio, 0);

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
if (4 === xhr.readyState && 200 === xhr.status && -1 !== xhr.responseText.indexOf('sf-toolbarreset')) {
1515
wdt.innerHTML = xhr.responseText;
1616
wdt.style.display = 'block';
17-
} elseif (4 === xhr.readyState && xhr.status != 200) {
17+
} else if (4 === xhr.readyState && xhr.status != 200) {
1818
confirm('An error occurred while loading the web debug toolbar (' + xhr.status + ': ' + xhr.statusText + ').\n\nDo you want to open the profiler?') && (window.location = '{{ path("_profiler", { "token": token }) }}');
1919
}
2020
};

0 commit comments

Comments
 (0)
0