includes/clientside/static/editor.js
changeset 673 99c617146a34
parent 672 08a7875258b4
child 693 f21aa64d050a
equal deleted inserted replaced
672:08a7875258b4 673:99c617146a34
   625         }
   625         }
   626         if ( response.mode == 'success' )
   626         if ( response.mode == 'success' )
   627         {
   627         {
   628           if ( response.is_draft )
   628           if ( response.is_draft )
   629           {
   629           {
       
   630             // for some reason this code is throwing "uncaught exception" errors under gecko
       
   631             // firebug ain't tracing it, it'll be fixed soon enough though
       
   632             // note that the errors still seem to show after adding the try{}catch{} blocks
   630             try
   633             try
   631             {
   634             {
   632               document.getElementById('ajaxEditArea').used_draft = true;
   635               document.getElementById('ajaxEditArea').used_draft = true;
   633               document.getElementById('ajaxEditArea').needReset = true;
   636               document.getElementById('ajaxEditArea').needReset = true;
   634               var img = $dynano('ajax_edit_savedraft_btn').object.getElementsByTagName('img')[0];
   637               var img = $dynano('ajax_edit_savedraft_btn').object.getElementsByTagName('img')[0];