Index: Tools/GardeningServer/scripts/garden-o-matic.js |
diff --git a/Tools/GardeningServer/scripts/garden-o-matic.js b/Tools/GardeningServer/scripts/garden-o-matic.js |
index 33ab41d07da2190de02aa2e0707dc3c28f6bcbf0..97efe933b685834c921936ce4ad94f720f586357 100644 |
--- a/Tools/GardeningServer/scripts/garden-o-matic.js |
+++ b/Tools/GardeningServer/scripts/garden-o-matic.js |
@@ -39,9 +39,9 @@ var g_updateButton = null; |
function updatePartyTime() |
{ |
if (!g_unexpectedFailuresController.length() && !g_nonLayoutTestFailureBuilders.hasFailures()) |
- $('#onebar').addClass('partytime'); |
+ document.getElementById('onebar').classList.add('partytime'); |
else |
- $('#onebar').removeClass('partytime'); |
+ document.getElementById('onebar').classList.remove('partytime'); |
} |
function updateTreeStatus() |
@@ -104,7 +104,7 @@ function update() |
}); |
} |
-$(document).ready(function() { |
+window.addEventListener('load', function() { |
abarth-chromium
2014/06/30 04:26:03
ready -> DOMContentLoaded, right?
ojan
2014/06/30 04:49:59
Ah. I didn't realize that. Done.
|
g_updateTimerId = window.setInterval(update, config.kUpdateFrequency); |
window.setInterval(updateTreeStatus, config.kTreeStatusUpdateFrequency); |
@@ -119,7 +119,8 @@ $(document).ready(function() { |
showResults: function(resultsView) |
{ |
var resultsContainer = onebar.results(); |
- $(resultsContainer).empty().append(resultsView); |
+ resultsContainer.innerHTML = ''; |
+ resultsContainer.appendChild(resultsView) |
onebar.select('results'); |
} |
}; |