Permalink
Browse files

show game result

  • Loading branch information...
1 parent d61925a commit f03b8624597410049ec8212f5d32868b59dc6b39 @smith committed Sep 8, 2011
Showing with 4 additions and 5 deletions.
  1. +4 −5 CollegeFootball.wdgt/js/schedule.js
@@ -35,12 +35,11 @@ define(["require", "exports", "jquery", "./date"], function (require, exports, $
o.opponent = (away ? "at " : "") + team;
},
resultTime: function (cell, o) {
- var rt = o.resultTime = cell.find("p").text();
+ var rt = cell.text().trim();
// If there's " ET " (eastern time)
if (/\sET\s?/.test(rt)) {
- // Remove everything after the "ET "
- rt = rt.replace(/\sET\s?(.*)$/, "");
- rt = convertTZ(rt);
+ // Remove everything after the "ET " and convert timezone
+ rt = convertTZ(rt.replace(/\sET\s?(.*)$/, ""));
}
o.resultTime = rt;
},
@@ -54,7 +53,7 @@ define(["require", "exports", "jquery", "./date"], function (require, exports, $
s.toHtml = function () {
var t = $("<table />"),
- fields = ["date", "opponent", "resultTime"];
+ fields = ["date", "opponent", "resultTime"];
s.games.each(function (i, game) {
var row = $("<tr />");

0 comments on commit f03b862

Please sign in to comment.