rem: this.displayMode(); 
add:  var toSend = 'action=savepage/ajax' + '&savetext=' + encodeURIComponent(wikitext) + '&datestamp=' + datestamp + '&section=' + section; var location = this.mylocation;  var saved=self.div.innerHTML; self.div.innerHTML='<img src="'+_url_prefix+'/imgs/loading.gif" />'; var form=HTTPPost(location,toSend); if (form.substring(0,4) == 'true') {  var toSend = 'action=markup&all=1&section=' + section; form=HTTPPost(location,toSend); self.div.innerHTML=form;  this.displayMode(); return; } else { self.div.innerHTML=saved; var f=document.createElement('div'); f.setAttribute('class','errorLog');  f.innerHTML=form; self.parentNode.appendChild(f); } return; 
context: Wikiwyg.prototype.saveChanges = function() {    var self = this;    var myWikiwyg = new Wikiwyg.Wikitext();    var wikitext;    this.current_mode.toHtml( function(html) { self.fromHtml(html) });    if (this.current_mode.classname.match(/(Wysiwyg|HTML|Preview)/)) {        this.current_mode.fromHtml(this.div.innerHTML);        wikitext = myWikiwyg.convert_html_to_wikitext(this.div.innerHTML);    }    else {        wikitext = this.current_mode.textarea.value;    }    //alert(wikitext);    myWikiwyg.convertWikitextToHtmlAll(wikitext,        function(new_html) { self.div.innerHTML = new_html });    this.displayMode();}
meta: 2836	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2836/5e879321ff42b66170e07e7d6be566ebd33c1e75/moniwyg.js/buggy/local/moniwyg.js