From 4675c5969bc734c8fe27714b9dabc21d8e4ab70c Mon Sep 17 00:00:00 2001 From: Dan Helfman Date: Sat, 24 Jan 2009 23:20:54 -0800 Subject: [PATCH] Removing some code within display_error() that was preventing it from working. --- static/js/Wiki.js | 8 -------- 1 file changed, 8 deletions(-) diff --git a/static/js/Wiki.js b/static/js/Wiki.js index a981881..410bfa5 100644 --- a/static/js/Wiki.js +++ b/static/js/Wiki.js @@ -2556,14 +2556,6 @@ Wiki.prototype.display_error = function ( text, nodes, position_after ) { this.clear_messages(); this.clear_pulldowns(); - // remove all empty editors, some of which might exist due to a problem reaching the server - var iframes = getElementsByTagAndClassName( "iframe", "note_frame" ); - for ( var i in iframes ) { - var editor = iframes[ i ].editor; - if ( editor.empty() ) - editor.shutdown(); - } - var inner_div = DIV( { "class": "error_inner" }, text + " " ); for ( var i in nodes ) appendChildNodes( inner_div, nodes[ i ] );