don't append empty textareas
This commit is contained in:
parent
0996aee7a7
commit
68b59b0370
1 changed files with 4 additions and 2 deletions
|
@ -107,8 +107,10 @@
|
||||||
output = "internal error. Sorry.";
|
output = "internal error. Sorry.";
|
||||||
}
|
}
|
||||||
if (appendNewOutput) {
|
if (appendNewOutput) {
|
||||||
|
if (output !== "") {
|
||||||
$output = $(template.replace(/\{index\}/g, "" + outputIndex).replace(/\{content\}/g, output));
|
$output = $(template.replace(/\{index\}/g, "" + outputIndex).replace(/\{content\}/g, output));
|
||||||
$("body").append($output);
|
$("body").append($output);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
$output.val(output);
|
$output.val(output);
|
||||||
update($output);
|
update($output);
|
||||||
|
|
Loading…
Reference in a new issue