rem: 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)) {  grippied_textareas.pop(in_array('ajaxEditArea', grippied_textareas)); } disableUnload('If you do, any changes that you have made to this page will be lost.'); var switcher = ( readCookie('enano_editor_mode') == 'tinymce' ) ? '<a href="#" onclick="setEditorText(); return false;">wikitext editor</a>  |  graphical editor' : 'wikitext editor  |  <a href="#" onclick="setEditorMCE(); return false;">graphical editor</a>' ; document.getElementById('ajaxEditContainer').innerHTML = '\ <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(); } } }); 
add: mb.onclick['Yes'] = function() { var html = $('invalidjson_link').object._resp; var win = window.open('about:blank', 'invalidjson_htmlwin', 'width=550,height=400,status=no,toolbars=no,toolbar=no,address=no,scroll=yes'); win.document.write(html); } 
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));        }        disableUnload('If you do, any changes that you have made to this page will be lost.');        var switcher = ( readCookie('enano_editor_mode') == 'tinymce' ) ?                        '<a href="#" onclick="setEditorText(); return false;">wikitext editor</a>  |  graphical editor' :                        'wikitext editor  |  <a href="#" onclick="setEditorMCE(); return false;">graphical editor</a>' ;        document.getElementById('ajaxEditContainer').innerHTML = '\        <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>';        // initTextareas();        if(readCookie('enano_editor_mode') == 'tinymce')        {          $('ajaxEditArea').switchToMCE();        }      }  });
meta: 3765	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/3765/d7141bbfd35c2b2bc6e3720f56cfebedaeb26b35/ajax.js/clean/includes/clientside/static/ajax.js