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

Unified Diff: Tools/GardeningServer/scripts/ui/failures.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/ui/failures.js
diff --git a/Tools/GardeningServer/scripts/ui/failures.js b/Tools/GardeningServer/scripts/ui/failures.js
index edd87d72bfd7ba46ea7b42348221dbf48f17c9ae..3d19ce9e3712fa1d61ff707b6c085618ea0d288e 100644
--- a/Tools/GardeningServer/scripts/ui/failures.js
+++ b/Tools/GardeningServer/scripts/ui/failures.js
@@ -87,9 +87,10 @@ ui.failures.FailureGrid = base.extends('table', {
_rowByResult: function(result)
{
var row = this._resultRows[result];
- $(row).show();
- if (row)
+ if (row) {
+ row.style.display = '';
return row;
+ }
row = this._resultRows[result] = this._body.insertRow(0);
row.className = result;
@@ -126,10 +127,9 @@ ui.failures.FailureGrid = base.extends('table', {
{
this._pendingReset = false;
this._resultRows = {};
- $(this._body).empty();
+ this._body.innerHTML = '';
// Add the BUILDING row eagerly so that it appears last.
- this._rowByResult(kBuildingResult);
- $(this._resultRows[kBuildingResult]).hide();
+ this._rowByResult(kBuildingResult).style.display = 'none';
}
});

Powered by Google App Engine
This is Rietveld 408576698