Add highlighting option to league tables

This commit is contained in:
Brian Miyaji
2014-08-15 22:25:14 +10:00
parent 7defc8d773
commit 47a2aca3f7
3 changed files with 66 additions and 8 deletions

View File

@@ -25,6 +25,16 @@ jQuery(document).ready(function($){
// Activate auto key placeholder
$("#poststuff #title").keyup();
// Radio input toggle
$(".sp-radio-toggle").click(function() {
if($(this).data("sp-checked")) {
$(this).attr("checked", false );
$(this).data("sp-checked", false );
} else {
$(this).data("sp-checked", true );
}
});
// Table switcher
$(".sp-table-panel").siblings(".sp-table-bar").find("a").click(function() {
$(this).closest("li").find("a").addClass("current").closest("li").siblings().find("a").removeClass("current").closest(".sp-table-bar").siblings($(this).attr("href")).show().siblings(".sp-table-panel").hide();