forked from Botanical/BotanJS
Comment translate line breaks
This commit is contained in:
parent
61049939fb
commit
39f4f086df
@ -430,6 +430,12 @@
|
|||||||
captcha_wrapper.removeEventListener(captchaKey);
|
captcha_wrapper.removeEventListener(captchaKey);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
, __createContentText = function( text )
|
||||||
|
{
|
||||||
|
var e = wrapc( "c_text", text );
|
||||||
|
e.innerHTML = e.innerHTML.replace( /\n/g, "<br />" );
|
||||||
|
return e;
|
||||||
|
}
|
||||||
|
|
||||||
, generateCommentStack = function ( rObj, obj )
|
, generateCommentStack = function ( rObj, obj )
|
||||||
{
|
{
|
||||||
@ -455,11 +461,11 @@
|
|||||||
// Generate comment stack
|
// Generate comment stack
|
||||||
, c_stack = rObj["comment_id"]
|
, c_stack = rObj["comment_id"]
|
||||||
// Reply Structure
|
// Reply Structure
|
||||||
? wrapc("reply", wrapc("c_cont", [ c_ind = wrapc("r_indicator") , wrapc("c_text", rObj.content) , c_info ]))
|
? wrapc("reply", wrapc("c_cont", [ c_ind = wrapc("r_indicator") , __createContentText( rObj.content ) , c_info ]))
|
||||||
: wrapc("c_comm",
|
: wrapc("c_comm",
|
||||||
[
|
[
|
||||||
c_ind = wrapc("c_indicator")
|
c_ind = wrapc("c_indicator")
|
||||||
, c_cont = wrapc("c_cont", [ cpole = wrapc("cpole") , wrapc("c_text", rObj.content) , c_info ])
|
, c_cont = wrapc("c_cont", [ cpole = wrapc("cpole") , __createContentText( rObj.content ) , c_info ])
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
;
|
;
|
||||||
|
Loading…
Reference in New Issue
Block a user