diff --git a/xpfe/components/find/resources/finddialog.js b/xpfe/components/find/resources/finddialog.js index 49f884793af..0b323d93a2d 100644 --- a/xpfe/components/find/resources/finddialog.js +++ b/xpfe/components/find/resources/finddialog.js @@ -27,6 +27,7 @@ dialog.find = document.getElementById("ok"); dialog.cancel = document.getElementById("cancel"); dialog.enabled = false; + dialog.bundle = document.getElementById("findBundle"); } function loadDialog() @@ -112,7 +113,9 @@ loadData(); // Search. - finder.findNext( data ); + var result = finder.findNext( data ); + if (!result) + window.alert(dialog.bundle.getString("notFoundWarning")); // don't close the window return false; diff --git a/xpfe/components/find/resources/finddialog.xul b/xpfe/components/find/resources/finddialog.xul index 610f0ee889f..a9cb41ab9e9 100644 --- a/xpfe/components/find/resources/finddialog.xul +++ b/xpfe/components/find/resources/finddialog.xul @@ -45,8 +45,8 @@ Contributor(s): Stuart Parmenter persist="screenX screenY" screenX="24" screenY="24"> - - +