From 6e2759be28cff8ff06a4db20bee5b97080e1369e Mon Sep 17 00:00:00 2001 From: "pchen%netscape.com" Date: Wed, 21 Nov 2001 10:16:34 +0000 Subject: [PATCH] bug 109569, r=fabian, sr=hewitt, need to get ok button via document.documentElement.getButton("accept)" git-svn-id: svn://10.0.0.236/trunk@108686 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/xpfe/components/bookmarks/resources/findBookmark.js | 2 +- mozilla/xpfe/components/history/resources/findHistory.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mozilla/xpfe/components/bookmarks/resources/findBookmark.js b/mozilla/xpfe/components/bookmarks/resources/findBookmark.js index 29611a6c914..10b948db1a7 100644 --- a/mozilla/xpfe/components/bookmarks/resources/findBookmark.js +++ b/mozilla/xpfe/components/bookmarks/resources/findBookmark.js @@ -41,7 +41,7 @@ var gSearchField; function Startup() { var bundle = document.getElementById("bookmarksBundle"); - gOKButton = document.getElementById("ok"); + gOKButton = document.documentElement.getButton("accept"); gOKButton.label = bundle.getString("search_button_label"); gOKButton.disabled = true; gSearchField = document.getElementById("searchField"); diff --git a/mozilla/xpfe/components/history/resources/findHistory.js b/mozilla/xpfe/components/history/resources/findHistory.js index ad8acb11585..4fc8d0b65b6 100644 --- a/mozilla/xpfe/components/history/resources/findHistory.js +++ b/mozilla/xpfe/components/history/resources/findHistory.js @@ -41,7 +41,7 @@ var gSearchField; function Startup() { var bundle = document.getElementById("historyBundle"); - gOKButton = document.getElementById("ok"); + gOKButton = document.documentElement.getButton("accept"); gOKButton.label = bundle.getString("search_button_label"); gOKButton.disabled = true; gSearchField = document.getElementById("searchField");