Bug 695801 Insert Character dialog doesn't switch to other editor window r+a=IanN
authorNeil Rashbrook <neil@parkwaycc.co.uk>
Fri, 04 Nov 2011 21:53:47 +0000
changeset 9337 f0c7a724baade856a744a3995daa33069386b0f5
parent 9336 672ee035ff4af0c457ea73ac19bf1110e270b64f
child 9338 8067ee8641fc48074fee46d3f045417a0c674c43
push idunknown
push userunknown
push dateunknown
bugs695801
Bug 695801 Insert Character dialog doesn't switch to other editor window r+a=IanN
editor/ui/composer/content/editor.js
--- a/editor/ui/composer/content/editor.js
+++ b/editor/ui/composer/content/editor.js
@@ -3235,17 +3235,17 @@ function SwitchInsertCharToAnotherEditor
     if (!enumerator) return;
 
     // TODO: Fix this to search for command controllers and look for "cmd_InsertChars"
     // For now, detect just Web Composer and HTML Mail Composer
     while ( enumerator.hasMoreElements()  )
     {
       var  tempWindow = enumerator.getNext();
       if (tempWindow != window && tempWindow != window.InsertCharWindow &&
-          "GetCurrentEditor" in tempWindow && tmpWindow.GetCurrentEditor())
+          "GetCurrentEditor" in tempWindow && tempWindow.GetCurrentEditor())
       {
         tempWindow.InsertCharWindow = window.InsertCharWindow;
         window.InsertCharWindow = null;
         tempWindow.InsertCharWindow.opener = tempWindow;
         return;
       }
     }
     // Didn't find another editor - close the dialog