Fix JavaScript error in icon mode box scores
This commit is contained in:
@@ -253,6 +253,9 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Event Performance */
|
/* Event Performance */
|
||||||
|
.sp-event-performance thead {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
.sp-event-performance .sub {
|
.sp-event-performance .sub {
|
||||||
background: rgba(0,0,0,0.05);
|
background: rgba(0,0,0,0.05);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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 */
|
/* API method to get paging information */
|
||||||
$.fn.dataTableExt.oApi.fnPagingInfo = function ( oSettings )
|
$.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);
|
})(jQuery);
|
||||||
@@ -45,6 +45,12 @@ if ( ! isset( $subs ) ) $subs = array();
|
|||||||
<?php foreach ( $labels as $key => $label ): ?>
|
<?php foreach ( $labels as $key => $label ): ?>
|
||||||
<th class="data-<?php echo $key; ?>"><?php echo $label; ?></th>
|
<th class="data-<?php echo $key; ?>"><?php echo $label; ?></th>
|
||||||
<?php endforeach; ?>
|
<?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; ?>
|
<?php endif; ?>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
|
|||||||
Reference in New Issue
Block a user