Add classes and filters to team dropdown

This commit is contained in:
Brian Miyaji
2015-09-23 21:39:45 +10:00
parent 56a3af544b
commit b5ee62610e
4 changed files with 11 additions and 7 deletions

View File

@@ -54,7 +54,7 @@ jQuery(document).ready(function($){
});
// Tab filter
$(".sp-tab-panel").siblings(".sp-tab-select").find("select").change(function() {
$(".sp-tab-filter-panel").siblings(".sp-tab-select").find("select").change(function() {
var val = $(this).val();
var filter = ".sp-filter-"+val;
var $filters = $(this).closest(".sp-tab-select").siblings(".sp-tab-select");
@@ -86,7 +86,7 @@ jQuery(document).ready(function($){
});
// Trigger tab filter
$(".sp-tab-panel").siblings(".sp-tab-select").find("select").change();
$(".sp-tab-filter-panel").siblings(".sp-tab-select").find("select").change();
// Dropdown filter
$(".sp-dropdown-target").siblings(".sp-dropdown-filter").find("select").change(function() {