Fix JavaScript error in icon mode box scores

This commit is contained in:
Brian Miyaji
2017-01-20 11:17:11 +11:00
parent 399f54b969
commit c322e1fe16
3 changed files with 25 additions and 16 deletions

View File

@@ -253,6 +253,9 @@
}
/* Event Performance */
.sp-event-performance thead {
display: none;
}
.sp-event-performance .sub {
background: rgba(0,0,0,0.05);
}

View File

@@ -25,6 +25,22 @@ function sp_viewport() {
});
});
/* Scrollable Tables */
$(".sp-scrollable-table").wrap("<div class=\"sp-scrollable-table-wrapper\"></div>");
/* Selector Redirect */
$(".sp-selector-redirect").change(function() {
window.location = $(this).val();
});
/* Template Tabs */
$(".sp-tab-menu-item a").click(function() {
$template = $(this).data("sp-tab");
$(this).closest(".sp-tab-menu-item").addClass("sp-tab-menu-item-active").siblings(".sp-tab-menu-item").removeClass("sp-tab-menu-item-active");
$(this).closest(".sp-tab-group").find(".sp-tab-content-"+$template).show().siblings(".sp-tab-content").hide();
return false;
});
/* API method to get paging information */
$.fn.dataTableExt.oApi.fnPagingInfo = function ( oSettings )
{
@@ -76,20 +92,4 @@ function sp_viewport() {
}
});
/* Scrollable Tables */
$(".sp-scrollable-table").wrap("<div class=\"sp-scrollable-table-wrapper\"></div>");
/* Selector Redirect */
$(".sp-selector-redirect").change(function() {
window.location = $(this).val();
});
/* Template Tabs */
$(".sp-tab-menu-item a").click(function() {
$template = $(this).data("sp-tab");
$(this).closest(".sp-tab-menu-item").addClass("sp-tab-menu-item-active").siblings(".sp-tab-menu-item").removeClass("sp-tab-menu-item-active");
$(this).closest(".sp-tab-group").find(".sp-tab-content-"+$template).show().siblings(".sp-tab-content").hide();
return false;
});
})(jQuery);

View File

@@ -45,6 +45,12 @@ if ( ! isset( $subs ) ) $subs = array();
<?php foreach ( $labels as $key => $label ): ?>
<th class="data-<?php echo $key; ?>"><?php echo $label; ?></th>
<?php endforeach; ?>
<?php else: ?>
<?php if ( apply_filters( 'sportspress_event_performance_show_numbers', $show_numbers, $section ) ): ?>
<th></th>
<?php endif; ?>
<th></th>
<th></th>
<?php endif; ?>
</tr>
</thead>