Fix filter when seasons or leagues are not set

This commit is contained in:
Brian Miyaji
2014-03-21 19:00:57 +11:00
parent 90753a410f
commit 991498f623

View File

@@ -58,9 +58,12 @@ jQuery(document).ready(function($){
var $filters = $(this).closest(".sp-tab-select").siblings(".sp-tab-select");
if($filters.length) {
$filters.each(function() {
filter += ".sp-filter-"+$(this).find("select").val();
filterval = $(this).find("select").val();
if(filterval !== undefined)
filter += ".sp-filter-"+filterval;
});
}
console.log( filter );
$panel = $(this).closest(".sp-tab-select").siblings(".sp-tab-panel")
$panel.find(".sp-post").hide(0, function() {
$(this).find("input").prop("disabled", true);