bug 49116, javascript errors when doing edit in javascript window, r=waterson

git-svn-id: svn://10.0.0.236/trunk@205272 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
morse%netscape.com
2006-07-29 05:34:28 +00:00
parent 629c7efcca
commit d0d8b073a0

View File

@@ -86,7 +86,10 @@ function goPreferences(id, paneURL, paneID)
function okToCapture() {
var capture = document.getElementById("menu_capture");
if (!window._content.document) {
if (!capture) {
return;
}
if (!window._content || !window._content.document) {
capture.setAttribute("disabled", "true");
return;
}
@@ -109,7 +112,10 @@ function okToCapture() {
function okToPrefill() {
var prefill = document.getElementById("menu_prefill");
if (!window._content.document) {
if (!prefill) {
return;
}
if (!window._content || !window._content.document) {
prefill.setAttribute("disabled", "true");
return;
}