'); tr.append("
" + (val.gameNumber != null ? val.gameNumber : "") + " | "); tr.append("" + val.sDateString + (val.notes != "" ? " " + val.notes : "") + " | "); tr.append("" + (val.RARID != null ? "" + val.ArenaName + "" : val.ArenaName) + " | "); if (val.homeTID != null) { var jersey1 = ""; var jersey2 = ""; var jersey3 = ""; var jerseyprint = ""; if (jersey2 == "") { jersey2 = jersey1; } if (jersey3 == "") { jersey3 = "FFF"; } if (jersey1 != "") { jerseyprint = ''; } var teamHomeDecode = homeDisplay; var teamAwayDecode = awayDisplay; tr.append("" + "" + unescapeHTML(teamHomeDecode) + (val.cancelledHome && val.cancelledAway ? " (CANCELLED)" : "") + (val.rainout ? " (RAINOUT)" : "") + " | "); } else { tr.append("" + val.HomeTeamName + (val.cancelledHome && val.cancelledAway ? " (CANCELLED)" : "") + " | "); } if (val.awayTID != null) { var Ajersey1 = ""; var Ajersey2 = ""; var Ajersey3 = ""; var Ajerseyprint = ""; if (Ajersey2 == "") { Ajersey2 = Ajersey1; } if (Ajersey3 == "") { Ajersey3 = "FFF"; } if (Ajersey1 != "") { Ajerseyprint = ''; } tr.append("" + "" + unescapeHTML(awayDisplay) + (val.cancelledAway && val.cancelledHome ? " (CANCELLED)" : "") + (val.rainout ? " (RAINOUT)" : "") + " | "); } else { tr.append("" + val.AwayTeamName + (val.cancelledAway && val.cancelledHome ? " (CANCELLED)" : "") + " | "); } /*tr.append("" + (val.completed || val.liveScores ? (val.homeScore != null ? val.homeScore : '0') + ' - ' + (val.awayScore != null ? val.awayScore : '0') : '') + " | ");*/ /*hide gamesheet link for EIYSA AID = 1727*/ $('#tblSchedule tbody').append(tr); }); $("#tblSchedule").tablesorter({ widgets: ['zebra'], headers: { 5: { sorter: false }, 6: { sorter: false } } }).trigger("update"); }); $('#tblSchedule').show(); } else { $('#tblSchedule').hide(); } };