Fix bug 307056 Read-only address book cards should have just a ok button that doesn't try to update the card (SeaMonkey version) r/sr=neil.parkwaycc.co.uk

This commit is contained in:
bugzilla%standard8.demon.co.uk 2005-09-19 16:25:28 +00:00
parent 028d1bd7b9
commit 317377aea9
2 changed files with 4 additions and 1 deletions

View File

@ -238,6 +238,9 @@ function OnLoadEditCard()
var disableElements = document.getElementsByAttribute("disableforreadonly", "true");
for (var i=0; i<disableElements.length; i++)
disableElements[i].setAttribute('disabled', 'true');
document.documentElement.buttons = "accept";
document.documentElement.removeAttribute("ondialogaccept");
}
}
}

View File

@ -42,7 +42,7 @@
<dialog xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
id="abcardWindow"
onload="OnLoadEditCard()"
onload="OnLoadEditCard()"
ondialogaccept="return EditCardOKButton();">
<stringbundleset id="stringbundleset"/>