Fixed draft controls being shown in view source mode
authorDan
Sun, 24 Aug 2008 12:41:05 -0400
changeset 705 85943d71c214
parent 704 077887be639d
child 706 397954f99873
Fixed draft controls being shown in view source mode
includes/clientside/static/editor.js
--- a/includes/clientside/static/editor.js	Sat Aug 23 16:03:32 2008 -0400
+++ b/includes/clientside/static/editor.js	Sun Aug 24 12:41:05 2008 -0400
@@ -162,7 +162,7 @@
   }
   
   // Draft notice
-  if ( response.have_draft )
+  if ( response.have_draft && !readonly )
   {
     var dn = document.createElement('div');
     dn.className = 'warning-box';