includes/clientside/static/editor.js
changeset 1068 4bcefa85649c
parent 880 218b6d4de908
child 1102 faef5e62e1e0
--- a/includes/clientside/static/editor.js	Fri Jul 17 20:28:24 2009 -0400
+++ b/includes/clientside/static/editor.js	Fri Jul 17 20:48:53 2009 -0400
@@ -419,10 +419,10 @@
   tblholder.appendChild(metatable);
   
   // Edit disclaimer/notice
-  if ( editNotice ) // This is set globally in {JS_DYNAMIC_VARS}.
+  if ( response.edit_notice )
   {
     var en_div = document.createElement('div');
-    en_div.innerHTML = editNotice;
+    en_div.innerHTML = response.edit_notice;
     en_div.className = 'usermessage';
     en_div.style.margin = '10px 0 0 0';
   }
@@ -445,7 +445,7 @@
   form.innerHTML += '<div style="margin: 10px 0 0 0;">' + toolbar + '</div>';
   edcon.appendChild(form);
   
-  if ( editNotice && !readonly )
+  if ( response.edit_notice && !readonly )
   {
     edcon.appendChild(en_div);
   }