mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-27 09:09:04 +01:00
Fixed typo
This commit is contained in:
parent
a9967f678d
commit
3287ac7286
@ -521,13 +521,14 @@ function et2_insertLinkText(_text, _node, _target)
|
||||
if (typeof s == "string" || typeof s == "number")
|
||||
{
|
||||
// Include line breaks
|
||||
var broken = s.split('\n');
|
||||
var lines = s.split('\n');
|
||||
|
||||
for (var j = 0; j < broken.length; j++)
|
||||
// Insert the lines
|
||||
for (var j = 0; j < lines.length; j++)
|
||||
{
|
||||
_node.appendChild(document.createTextNode(broken[j]));
|
||||
_node.appendChild(document.createTextNode(lines[j]));
|
||||
|
||||
if (j <= broken.length - 1)
|
||||
if (j < lines.length - 1)
|
||||
{
|
||||
_node.appendChild(document.createElement("br"));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user