This commit is contained in:
Brian Miyaji
2020-08-27 23:53:54 +10:00
2 changed files with 3 additions and 1 deletions

View File

@@ -258,7 +258,7 @@ jQuery(document).ready(function($){
});
// Activate total stats calculator
if($(".sp-data-table .sp-total").size()) {
if($(".sp-data-table .sp-total").length) {
$(".sp-data-table .sp-post td input").on("keyup", function() {
$(this).closest(".sp-data-table").find(".sp-total td").eq($(this).parent().index()).find("input[data-sp-format=number][data-sp-total-type!=average]").trigger("updateTotal");
});

View File

@@ -1580,6 +1580,7 @@ function sp_get_text_options() {
__( 'Full Time', 'sportspress' ),
__( 'Home', 'sportspress' ),
__( 'League', 'sportspress' ),
__( 'Leagues', 'sportspress' ),
__( 'League Table', 'sportspress' ),
__( 'Match Day', 'sportspress' ),
__( 'Nationality', 'sportspress' ),
@@ -1599,6 +1600,7 @@ function sp_get_text_options() {
__( 'Recap', 'sportspress' ),
__( 'Results', 'sportspress' ),
__( 'Season', 'sportspress' ),
__( 'Seasons', 'sportspress' ),
__( 'Staff', 'sportspress' ),
__( 'Statistics', 'sportspress' ),
__( 'TBD', 'sportspress' ),