portraits fix
This commit is contained in:
parent
fc125db6a8
commit
5544d99fff
|
@ -76,7 +76,11 @@ continueToNextChoice = function(s) {
|
||||||
if (s.currentChoices.length > 0) {
|
if (s.currentChoices.length > 0) {
|
||||||
const characters = listCharacters(jQuery("#content").text());
|
const characters = listCharacters(jQuery("#content").text());
|
||||||
if (characters.trim().length > 0) {
|
if (characters.trim().length > 0) {
|
||||||
jQuery("#content").prepend('<div class="portraits">'+characters.trim()+'</div>')
|
if (jQuery("#content .portraits").length === 0) {
|
||||||
|
jQuery("#content").prepend('<div class="portraits">'+characters.trim()+'</div>')
|
||||||
|
} else {
|
||||||
|
jQuery(".portraits").html(characters.trim())
|
||||||
|
}
|
||||||
}
|
}
|
||||||
jQuery("#options").html("").hide();
|
jQuery("#options").html("").hide();
|
||||||
ref = s.currentChoices;
|
ref = s.currentChoices;
|
||||||
|
|
Loading…
Reference in a new issue