This commit is contained in:
Brian Miyaji
2014-03-16 15:13:15 +11:00
parent 6a7f4d1d9f
commit 813069cd92
2 changed files with 12 additions and 3 deletions

View File

@@ -52,12 +52,20 @@ jQuery(document).ready(function($){
filter += ".sp-filter-"+$(this).find("select").val();
});
}
$(this).closest(".sp-tab-select").siblings(".sp-tab-panel").find(".sp-post").hide(0, function() {
$panel = $(this).closest(".sp-tab-select").siblings(".sp-tab-panel")
$panel.find(".sp-post").hide(0, function() {
$(this).find("input").prop("disabled", true);
$(this).filter(filter).show(0, function() {
$(this).find("input").prop("disabled", false);
});
});
if($panel.find(".sp-post:visible").length > 0) {
$panel.find(".sp-select-all-container").show();
$panel.find(".sp-not-found-container").hide();
} else {
$panel.find(".sp-select-all-container").hide();
$panel.find(".sp-not-found-container").show();
}
});
// Trigger tab filter