Partial revert of b6a7167 JS syntax requires space in else if.

This commit is contained in:
Drak 2011-12-26 08:42:19 +05:45
parent b6a7167907
commit 628016dbdb
2 changed files with 2 additions and 2 deletions

View File

@ -127,7 +127,7 @@
if ('section.child' == event.name) {
context.fillStyle = colors.child_sections;
context.fillRect(x + period.begin * ratio, 0, (period.end - period.begin) * ratio, height);
} elseif ('section' == event.category) {
} else if ('section' == event.category) {
context.beginPath();
context.strokeStyle = "#dfdfdf";
context.moveTo(x + period.begin * ratio, 0);

View File

@ -14,7 +14,7 @@
if (4 === xhr.readyState && 200 === xhr.status && -1 !== xhr.responseText.indexOf('sf-toolbarreset')) {
wdt.innerHTML = xhr.responseText;
wdt.style.display = 'block';
} elseif (4 === xhr.readyState && xhr.status != 200) {
} else if (4 === xhr.readyState && xhr.status != 200) {
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 }) }}');
}
};