mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-05 08:35:26 +00:00
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:
parent
028d1bd7b9
commit
317377aea9
@ -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");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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"/>
|
||||
|
Loading…
Reference in New Issue
Block a user