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."; | ||||
| 		} | ||||
| 		if (appendNewOutput) { | ||||
| 			if (output !== "") { | ||||
| 				$output = $(template.replace(/\{index\}/g, "" + outputIndex).replace(/\{content\}/g, output)); | ||||
| 				$("body").append($output); | ||||
| 			} | ||||
| 		} else { | ||||
| 			$output.val(output); | ||||
| 			update($output); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue