From 25e95107e9ccaa460ff5a1135fa50e14fcd0825e Mon Sep 17 00:00:00 2001 From: "sfraser%netscape.com" Date: Sat, 5 May 2001 00:47:47 +0000 Subject: [PATCH] Fix bug 78419; move Find-related JS into a new file, used in message pane and message window. r=jag, sr=sspitzer git-svn-id: svn://10.0.0.236/trunk@94009 18797224-902f-48f8-a5cc-f745e15eee43 --- .../base/resources/content/mailWindowOverlay.js | 13 +++++++++++-- .../base/resources/content/mailWindowOverlay.xul | 1 + .../base/resources/content/messageWindow.js | 3 ++- 3 files changed, 14 insertions(+), 3 deletions(-) diff --git a/mozilla/mailnews/base/resources/content/mailWindowOverlay.js b/mozilla/mailnews/base/resources/content/mailWindowOverlay.js index a444342a848..ba4839d7c63 100644 --- a/mozilla/mailnews/base/resources/content/mailWindowOverlay.js +++ b/mozilla/mailnews/base/resources/content/mailWindowOverlay.js @@ -819,12 +819,21 @@ function MsgViewPageSource() function MsgFind() { - messenger.find(); + var contentWindow = window.top._content; + + // from utilityOverlay.js + findInPage(getMessageBrowser(), contentWindow, contentWindow) } function MsgFindAgain() { - messenger.findAgain(); + var contentWindow = window.top._content; + findAgainInPage(getMessageBrowser(), contentWindow, contentWindow) +} + +function MsgCanFindAgain() +{ + return canFindAgainInPage(); } function MsgSearchMessages() diff --git a/mozilla/mailnews/base/resources/content/mailWindowOverlay.xul b/mozilla/mailnews/base/resources/content/mailWindowOverlay.xul index b9e07ac5458..900992c3df9 100644 --- a/mozilla/mailnews/base/resources/content/mailWindowOverlay.xul +++ b/mozilla/mailnews/base/resources/content/mailWindowOverlay.xul @@ -42,6 +42,7 @@ Rights Reserved.