From b741db63b0819af054b7584b0f90b06a80151b51 Mon Sep 17 00:00:00 2001 From: "mgalli%geckonnection.com" Date: Thu, 17 Nov 2005 20:21:59 +0000 Subject: [PATCH] Find basic code - not complete. --- minimo/chrome/content/minimo.js | 37 +++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/minimo/chrome/content/minimo.js b/minimo/chrome/content/minimo.js index 22aeefdc1d8..5ba14d96292 100755 --- a/minimo/chrome/content/minimo.js +++ b/minimo/chrome/content/minimo.js @@ -659,6 +659,43 @@ function DoBrowserRSS() { } } + +/* Toolbar specific code - to be removed from here */ + + +function DoBrowserFind() { +// BrowserViewFind(); + try { + var vQuery=document.getElementById("toolbar-find-tag").value; + if(vQuery!="") { + getBrowser().contentWindow.focus(); + + /* FIND DOCUMENTATION: + 41 const FIND_NORMAL = 0; + 42 const FIND_TYPEAHEAD = 1; + 43 const FIND_LINKS = 2; + http://lxr.mozilla.org/mozilla/source/toolkit/components/typeaheadfind/content/findBar.js + */ + getBrowser().fastFind.find(vQuery,0); + } + } catch (e) { + alert(e); + } +} + +/* Toolbar specific code - to be removed from here */ + +function DoBrowserFindNext() { + try { + getBrowser().fastFind.findNext(); + } catch (e) { + alert(e); + } +} + + + + function DoPanelPreferences() { window.openDialog("chrome://minimo/content/preferences/preferences.xul","preferences","modal,centerscreeen,chrome,resizable=no"); // BrowserReload();