'); tr.append("
" + val.rank + " | "); tr.append("" + jersey + " | "); tr.append("" + displayName + " | "); tr.append("" + "" + unescapeHTML(val.TeamName) + " | "); tr.append("" + val.GP + " | "); tr.append("" + val.G + " | "); tr.append("" + val.A + " | "); tr.append("" + val.PTS + " | "); tr.append("" + val.PtsPG.toFixed(2) + " | "); tr.append("" + val.GPG.toFixed(2) + " | "); tr.append("" + val.APG.toFixed(2) + " | "); tr.append("" + val.PPG + " | "); tr.append("" + val.SHG + " | "); tr.append("" + val.GWG + " | "); tr.append("" + val.PIM + " | "); $('#tblPlayers tbody').append(tr); }); $("#tblPlayers").tablesorter({ widgets: ['zebra'] }).trigger("update"); }); $('#tblPlayers').show(); $('#tblGoalieStats tbody').empty(); $.getJSON('/api/players/GetLeadersGoaliesCached/3406/' + sid + '/25303/' + gtid, function (data) { var gi = 0; $.each(data, function (key, val) { gi++; var lname = val.lname; var fname = val.fname; var isStaff = val.isStaff; var ap = val.AP; var displayName = ""; displayName = (lname != "" ? lname : ""); displayName += (fname != "" ? (displayName != "" ? ", " : "") + fname : ""); if (ap) { displayName += (displayName != "" ? " (AP)" : ""); } if (val.rookie) { displayName += " (Rookie)"; } if (val.committed) { displayName += " (Committed)"; } if (val.import) { displayName += " (Import)"; } if (val.injured) { displayName += " (Injured)"; } if (val.reserve) { displayName += " (Reserve)"; } if (val.suspended) { displayName += " (Suspended)"; } var jersey = ""; if (val.jersey != null) { jersey = val.jersey; } tr = $('
'); tr.append("" + gi + " | "); tr.append("" + jersey + " | "); tr.append("" + "" + displayName + " | "); tr.append("" + "" + val.TeamName + " | "); tr.append("" + val.GP + " | "); tr.append("" + val.W + " | "); tr.append("" + val.L + " | "); tr.append("" + val.T + " | "); tr.append("" + val.MPSP + " | "); tr.append("" + val.GA + " | "); tr.append("" + val.ShotsAgainst + " | "); tr.append("" + val.SAVES + " | "); tr.append("" + val.SavePercentageString + " | "); tr.append("" + val.GAAString + " | "); tr.append("" + val.SO + " | "); $('#tblGoalieStats tbody').append(tr); }); }); $('#tblGoalieStats').show(); $("#tblGoalieStats").tablesorter({ widgets: ['zebra'] }).trigger("update"); }