mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-08-11 22:01:00 +00:00
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:
@@ -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');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user