From 61ffc99b60dc116b4cce77a35758092de1bb871e Mon Sep 17 00:00:00 2001 From: phasefx Date: Fri, 13 Aug 2010 14:48:15 +0000 Subject: [PATCH] go ahead and expose the Find in Page functionality, but hide it under the Debug label for now. Other than being incomplete (no Find Next, etc.), the main problem I see are our dynamic dojo interfaces where the text one might be tempted to search for won't actually be rendered yet on the screen (say in a scrolling list) git-svn-id: svn://svn.open-ils.org/ILS/trunk@17212 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/web/opac/locale/en-US/lang.dtd | 4 ++++ Open-ILS/xul/staff_client/chrome/content/util/browser.js | 2 +- Open-ILS/xul/staff_client/chrome/content/util/browser.xul | 9 ++++++++- Open-ILS/xul/staff_client/chrome/content/util/rbrowser.xul | 9 ++++++++- 4 files changed, 21 insertions(+), 3 deletions(-) diff --git a/Open-ILS/web/opac/locale/en-US/lang.dtd b/Open-ILS/web/opac/locale/en-US/lang.dtd index 80fe25782..62f84e9e0 100644 --- a/Open-ILS/web/opac/locale/en-US/lang.dtd +++ b/Open-ILS/web/opac/locale/en-US/lang.dtd @@ -64,6 +64,10 @@ + + + + diff --git a/Open-ILS/xul/staff_client/chrome/content/util/browser.js b/Open-ILS/xul/staff_client/chrome/content/util/browser.js index ed565f280..16d6253ee 100644 --- a/Open-ILS/xul/staff_client/chrome/content/util/browser.js +++ b/Open-ILS/xul/staff_client/chrome/content/util/browser.js @@ -200,7 +200,7 @@ util.browser.prototype = { endPt.setStart(body, count); endPt.setEnd(body, count); var retRange = finder.Find(text, searchRange, startPt, endPt); - alert('retRange = ' + retRange ); + dump('retRange = ' + retRange + '\n'); setSelection(retRange); } catch(E) { alert('Error in browser.js, find(): ' + E); diff --git a/Open-ILS/xul/staff_client/chrome/content/util/browser.xul b/Open-ILS/xul/staff_client/chrome/content/util/browser.xul index 6cceebbd2..dc53621fd 100644 --- a/Open-ILS/xul/staff_client/chrome/content/util/browser.xul +++ b/Open-ILS/xul/staff_client/chrome/content/util/browser.xul @@ -112,13 +112,20 @@ + + + + + + +