Find Again should display Find dialog if no find string is specified
Change to findUtils.js to make it so.
r/sr=blake
This commit is contained in:
dean_tessman%hotmail.com 2006-07-29 05:38:17 +00:00
Родитель ca2b12c3f6
Коммит a04b97d5c5
1 изменённых файлов: 6 добавлений и 2 удалений

Просмотреть файл

@ -21,6 +21,7 @@
*
* Contributor(s):
* Simon Fraser <sfraser@netscape.com>
* Dean Tessman <dean_tessman@hotmail.com>
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
@ -87,8 +88,11 @@ function findAgainInPage(browser, rootSearchWindow, startSearchWindow)
findInst.findBackwards = findService.findBackwards;
var found = false;
if (findInst.searchString.length > 0) // should never happen if command updating works
found = findInst.findNext();
if (findInst.searchString.length == 0)
// no previous find text
return findInPage(browser, rootSearchWindow, startSearchWindow);
found = findInst.findNext();
if (!found) {
if (!gPromptService)
gPromptService = Components.classes["@mozilla.org/embedcomp/prompt-service;1"].getService()