added more validation

This commit is contained in:
Jesse James Isler 2022-03-31 11:13:48 +02:00
parent 9e4441f78b
commit 880483f124

View File

@ -242,14 +242,21 @@
if ($('#rolecolor').val() = "transparent" || $('#rolecolor').val() = "black" || $('#rolecolor').val() = "white") {
$('#modifier').val() = ""
$('#modifier').val() = "";
$('#modifier').prop('disabled', 'disabled');
$('#strength').val() = ""
$('#strength').val() = "";
$('#strength').prop('disabled', 'disabled');
} else if ($('#rolecolor').val() = "brown" || $('#rolecolor').val() = "grey" || $('#rolecolor').val() = "blue-grey" ) {
if ( $('#modifier').val() = "accent") {
$('#modifier').val().prop('disabled', 'disabled');
$('#strength').val().prop('disabled', 'disabled');
$('#modifier').val() = "";
$('#strength').val() = "";
}
}