Update create.php
This commit is contained in:
parent
17c7909ebb
commit
3e731fce29
25
create.php
25
create.php
@ -237,24 +237,25 @@
|
||||
}
|
||||
function updateColor() {
|
||||
|
||||
$('#strength').prop('disabled', false);
|
||||
$('#modifier').prop('disabled', false);
|
||||
strength = document.getElementById("carddescription");
|
||||
strength.removeAttribute('disabled');
|
||||
modifier = document.getElementById("modifier");
|
||||
modifier.removeAttribute('disabled');
|
||||
|
||||
if ($('#rolecolor').val() = "transparent" || $('#rolecolor').val() = "black" || $('#rolecolor').val() = "white") {
|
||||
if ($('#rolecolor').val() === "transparent" || $('#rolecolor').val() === "black" || $('#rolecolor').val() === "white") {
|
||||
|
||||
$('#modifier').val() = "";
|
||||
$('#modifier').prop('disabled', 'disabled');
|
||||
modifier.value = "";
|
||||
modifier.setAttribute('disabled', '');
|
||||
|
||||
$('#strength').val() = "";
|
||||
$('#strength').prop('disabled', 'disabled');
|
||||
strength.value = "";
|
||||
strength.setAttribute('disabled', '');
|
||||
|
||||
} else if ($('#rolecolor').val() = "brown" || $('#rolecolor').val() = "grey" || $('#rolecolor').val() = "blue-grey" ) {
|
||||
} else if ($('#rolecolor').val() === "brown" || $('#rolecolor').val() === "grey" || $('#rolecolor').val() === "blue-grey") {
|
||||
|
||||
if ( $('#modifier').val() = "accent") {
|
||||
$('#modifier').val() = "";
|
||||
$('#strength').val() = "";
|
||||
if ($('#modifier').val() === "accent") {
|
||||
modifier.value = "";
|
||||
strength.value = "";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user