Allow competitions to be selected for friendly matches

This commit is contained in:
Brian Miyaji
2017-06-06 15:48:39 +10:00
parent 2cb7a7528b
commit a13263ec22

View File

@@ -467,7 +467,7 @@ jQuery(document).ready(function($){
$(".post-type-sp_event #post-formats-select input.post-format").change(function() {
layout = $(".post-type-sp_event #post-formats-select input:checked").val();
if ( layout == "friendly" ) {
$(".sp_event-sp_league-field").hide().find("select").prop("disabled", true);
$(".sp_event-sp_league-field").show().find("select").prop("disabled", false);
$(".sp_event-sp_season-field").show().find("select").prop("disabled", false);
} else {
$(".sp_event-sp_league-field").show().find("select").prop("disabled", false);