fix: message preview doesn't work

It actually isn't even implemented in the JavaScript, so I'm commenting
it out for now, since it never really worked.

Relates to: #254
This commit is contained in:
Martin Ambrus
2017-11-03 15:52:29 +01:00
parent e51aec68bd
commit 6d1182e2f9
2 changed files with 8 additions and 6 deletions
+2 -2
View File
@@ -586,7 +586,7 @@ var BBEditor = new Class ({
showPreview: function(data) {
if (data.error == true) {
if (data && data.error == true) {
alert(data.errorMsg);
@@ -594,7 +594,7 @@ var BBEditor = new Class ({
} else {
this.preview.innerHTML = data.text;
this.preview.innerHTML = this.textArea.value;
this.preview.setStyle('display','block');