Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1005)

Unified Diff: Tools/GardeningServer/scripts/garden-o-matic.js

Issue 359283003: Remove usages of jquery and add sugar.js from garden-o-matic. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: remove jquery script from ct-sheriff-o-matic Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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');
}
};

Powered by Google App Engine
This is Rietveld 408576698