Commits

Luke Plant committed f5bb277

Fixed bug with error not being cleared

  • Participants
  • Parent commits c41a9a2

Comments (0)

Files changed (1)

semanticeditor/media/semanticeditor/javascript/wymeditor/plugins/semantic/wymeditor.semantic.js

 	this.clear_error();
 	callback(data.value);
     } else {
-	this.clear_error();
 	// TODO - perhaps distinguish between a server error
 	// and a user error
 	this.show_error(data.message);
 };
 
 PresentationControls.prototype.show_error = function(message) {
+    this.clear_error();
     this.errorbox.append(escapeHtml(message));
 };