includes/clientside/static/editor.js
changeset 1068 4bcefa85649c
parent 880 218b6d4de908
child 1102 faef5e62e1e0
equal deleted inserted replaced
1067:4058c844ee38 1068:4bcefa85649c
   417     // metatable.appendChild(tr3);
   417     // metatable.appendChild(tr3);
   418   }
   418   }
   419   tblholder.appendChild(metatable);
   419   tblholder.appendChild(metatable);
   420   
   420   
   421   // Edit disclaimer/notice
   421   // Edit disclaimer/notice
   422   if ( editNotice ) // This is set globally in {JS_DYNAMIC_VARS}.
   422   if ( response.edit_notice )
   423   {
   423   {
   424     var en_div = document.createElement('div');
   424     var en_div = document.createElement('div');
   425     en_div.innerHTML = editNotice;
   425     en_div.innerHTML = response.edit_notice;
   426     en_div.className = 'usermessage';
   426     en_div.className = 'usermessage';
   427     en_div.style.margin = '10px 0 0 0';
   427     en_div.style.margin = '10px 0 0 0';
   428   }
   428   }
   429   
   429   
   430   // Put it all together...
   430   // Put it all together...
   443   form.appendChild(ta_wrapper);
   443   form.appendChild(ta_wrapper);
   444   form.appendChild(tblholder);
   444   form.appendChild(tblholder);
   445   form.innerHTML += '<div style="margin: 10px 0 0 0;">' + toolbar + '</div>';
   445   form.innerHTML += '<div style="margin: 10px 0 0 0;">' + toolbar + '</div>';
   446   edcon.appendChild(form);
   446   edcon.appendChild(form);
   447   
   447   
   448   if ( editNotice && !readonly )
   448   if ( response.edit_notice && !readonly )
   449   {
   449   {
   450     edcon.appendChild(en_div);
   450     edcon.appendChild(en_div);
   451   }
   451   }
   452   
   452   
   453   // more textarea attribs/init
   453   // more textarea attribs/init