Bug 695801 Insert Character dialog doesn't switch to other editor window r+a=IanN RELEASE_BASE_20111104 SEAMONKEY_2_5b4_BUILD1 SEAMONKEY_2_5b4_RELEASE
authorNeil Rashbrook <neil@parkwaycc.co.uk>
Fri, 04 Nov 2011 21:53:47 +0000
changeset 8994 8bfebd66edf713c01fb0806cb0b7b633d78ff90e
parent 8990 5eb9f747f2210d34ef82ae2e4e39a217d5b166ec
child 8995 cd966e2a8b60c5bfc45f5d844114912a6f7f2868
child 8996 1d12840acae4ceb051441452c8c3eef196b1371b
push id227
push userjh@junetz.de
push dateFri, 04 Nov 2011 22:03:58 +0000
treeherdercomm-beta@8bfebd66edf7 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
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
@@ -3166,17 +3166,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