Skip to content

Commit

Permalink
bug fix (#1008)
Browse files Browse the repository at this point in the history
$this is not a good idea as it depends on the context
  • Loading branch information
loicjaouen authored Oct 16, 2018
1 parent dfcc759 commit 3381d96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion salsah1/src/public/js/jquery.propedit.js
Original file line number Diff line number Diff line change
Expand Up @@ -1508,7 +1508,7 @@
// encode '<strong>' in '&lt;strong&gt;'
tmpele.text(propinfo[prop].values[value_index].utf8str);
// replace the remaining '\n' with '<br>'
tmpele.html($this.html().replace(/\n/g, '<br>'));
tmpele.html(tmpele.html().replace(/\n/g, '<br>'));
}
value_container.append(tmpele);
tmpele.focus();
Expand Down

0 comments on commit 3381d96

Please sign in to comment.