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

@@ -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);