Skip to content
This repository has been archived by the owner on Jun 24, 2019. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
fix: use a text node instead of innerHTML
  • Loading branch information
Christian Kruse committed May 3, 2015
1 parent d01103a commit d5f7744
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/assets/javascripts/cf_messages.js
Expand Up @@ -63,10 +63,11 @@ cforum.cf_messages = {
$(".posting-content blockquote").each(function() {
var $this = $(this);
var txt = cforum.cf_messages.maxLen($this.text());
console.log(txt);

if(txt) {
$this.css('display', 'none');
$this.before('<blockquote class="show-quotes">' + txt + "<br>\n" + t('unfold_quote') + '</blockquote>');
$this.before('<blockquote class="show-quotes"><br>\n' + t('unfold_quote') + '</blockquote>');
$this.prev().prepend(document.createTextNode(txt));
}
});

Expand Down

0 comments on commit d5f7744

Please sign in to comment.