rem: <form method="get" action="#" onsubmit="ajaxSavePage(); return false;">\ <textarea readonly="readonly" id="ajaxEditArea" rows="20" cols="60" style="display: block; margin: 1em 0 1em 1em; width: 96.5%;">'+ajax.responseText+'</textarea><br />\ <a href="#" onclick="void(ajaxReset()); return false;">close viewer</a>\ </form>'; initTextareas(); 
add: <div id="mdgPreviewContainer"></div> \ <span id="switcher">' + switcher + '</span><br />\ <form name="mdgAjaxEditor" method="get" action="#" onsubmit="ajaxSavePage(); return false;">\ <textarea id="ajaxEditArea" rows="20" cols="60" style="display: block; margin: 1em 0 1em 1em; width: 96.5%;">'+ajax.responseText+'</textarea><br />\ Edit summary: <input id="ajaxEditSummary" size="40" /><br />\ <input id="ajaxEditMinor" name="minor" type="checkbox" /> <label for="ajaxEditMinor">This is a minor edit</label><br />\ <a href="#" onclick="void(ajaxSavePage()); return false;">save changes</a>  |  <a href="#" onclick="void(ajaxShowPreview()); return false;">preview changes</a>  |  <a href="#" onclick="void(ajaxEditor()); return false;">revert changes</a>  |  <a href="#" onclick="void(ajaxDiscard()); return false;">discard changes</a>\ <br />\ '+editNotice+'\ </form>';  if(readCookie('enano_editor_mode') == 'tinymce') { $('ajaxEditArea').switchToMCE(); } 
context:   ajaxGet(stdAjaxPrefix+'&_mode=getsource', function() {      if(ajax.readyState == 4) {        unsetAjaxLoading();        if(edit_open) {          c=confirm('Do you really want to revert your changes?');          if(!c) return;        }        edit_open = true;        selectButtonMajor('article');        selectButtonMinor('edit');        if(in_array('ajaxEditArea', grippied_textareas))        {          // Allow the textarea grippifier to re-create the resizer control on the textarea          grippied_textareas.pop(in_array('ajaxEditArea', grippied_textareas));        }        document.getElementById('ajaxEditContainer').innerHTML = '\          <form method="get" action="#" onsubmit="ajaxSavePage(); return false;">\            <textarea readonly="readonly" id="ajaxEditArea" rows="20" cols="60" style="display: block; margin: 1em 0 1em 1em; width: 96.5%;">'+ajax.responseText+'</textarea><br />\            <a href="#" onclick="void(ajaxReset()); return false;">close viewer</a>\          </form>';        initTextareas();      }  });
meta: 3765	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/3765/d7141bbfd35c2b2bc6e3720f56cfebedaeb26b35/ajax.js/clean/includes/clientside/static/ajax.js