diff --git a/assets/js/admin/sportspress-admin.js b/assets/js/admin/sportspress-admin.js index e660a847..ca3cdc88 100644 --- a/assets/js/admin/sportspress-admin.js +++ b/assets/js/admin/sportspress-admin.js @@ -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"); }); diff --git a/includes/sp-core-functions.php b/includes/sp-core-functions.php index b1ce7bd2..cad4706c 100644 --- a/includes/sp-core-functions.php +++ b/includes/sp-core-functions.php @@ -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' ),