Make it a little bit "smarter" using jQuery to avoid default $order value

This commit is contained in:
savvasha
2019-03-01 18:37:04 +02:00
parent b0e3732b90
commit 1c540903cd
2 changed files with 18 additions and 12 deletions

View File

@@ -886,4 +886,13 @@ jQuery(document).ready(function($){
// Trigger box score time converter
$('.sp-convert-time-input').change();
// Trigger show/hide of team table ordering
$('#sp_orderby').change(function(){
if ($('#sp_orderby').val() == 'default') {
$("#sp_order").hide();
}else{
$('#sp_order').show();
}
});
});