Add option to record minutes for individual statistics
This commit is contained in:
@@ -364,21 +364,27 @@ jQuery(document).ready(function($){
|
||||
// Format selector
|
||||
$(".sp-format-selector select:first").change(function() {
|
||||
|
||||
$precisionselector = $(".sp-precision-selector input:first");
|
||||
$precisiondiv = $("#sp_precisiondiv");
|
||||
$precisioninput = $("#sp_precision");
|
||||
$timeddiv = $("#sp_timeddiv");
|
||||
$equationdiv = $("#sp_equationdiv");
|
||||
|
||||
// Precision settings
|
||||
if($(this).val() == "decimal" || $(this).val() == "time") {
|
||||
$precisionselector.prop( "disabled", false );
|
||||
} else {
|
||||
$precisionselector.prop( "disabled", true )
|
||||
}
|
||||
|
||||
// Equation settings
|
||||
if($(this).val() == "equation") {
|
||||
if ($(this).val() == "equation") {
|
||||
$equationdiv.show();
|
||||
$precisiondiv.show();
|
||||
$timeddiv.hide();
|
||||
$precisioninput.prop( "disabled", false );
|
||||
} else if ($(this).val() == "number") {
|
||||
$equationdiv.hide();
|
||||
$precisiondiv.hide();
|
||||
$timeddiv.show();
|
||||
$precisioninput.prop( "disabled", true );
|
||||
} else {
|
||||
$equationdiv.hide();
|
||||
$precisiondiv.hide();
|
||||
$timeddiv.hide();
|
||||
$precisioninput.prop( "disabled", true );
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user