Fix JavaScript error in icon mode box scores
This commit is contained in:
@@ -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);
|
||||
Reference in New Issue
Block a user