Update create.php
This commit is contained in:
parent
17c7909ebb
commit
3e731fce29
25
create.php
25
create.php
@ -237,24 +237,25 @@
|
|||||||
}
|
}
|
||||||
function updateColor() {
|
function updateColor() {
|
||||||
|
|
||||||
$('#strength').prop('disabled', false);
|
strength = document.getElementById("carddescription");
|
||||||
$('#modifier').prop('disabled', false);
|
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.value = "";
|
||||||
$('#modifier').prop('disabled', 'disabled');
|
modifier.setAttribute('disabled', '');
|
||||||
|
|
||||||
$('#strength').val() = "";
|
strength.value = "";
|
||||||
$('#strength').prop('disabled', 'disabled');
|
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") {
|
if ($('#modifier').val() === "accent") {
|
||||||
$('#modifier').val() = "";
|
modifier.value = "";
|
||||||
$('#strength').val() = "";
|
strength.value = "";
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user