auto_vcard/chrome/content/dialog.xul

37 lines
1.2 KiB
Text
Raw Normal View History

2018-06-03 13:31:49 +00:00
<?xml version="1.0"?>
<?xml-stylesheet href="chrome://global/skin/global.css" type="text/css"?>
<!DOCTYPE dialog SYSTEM "chrome://autovcard/locale/autovcard.dtd">
<dialog xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
title="&autovcard.dialog.windowtitle;"
buttons="accept,cancel"
ondialogaccept="return autovcard_on_ok()"
buttonlabelaccept="&autovcard.dialog.button.accept;"
buttonlabelcancel="&autovcard.dialog.button.cancel;"
>
<script type="application/javascript">
<![CDATA[
function autovcard_callback(str){
window.arguments[0].vcard = str;
window.arguments[0].out = "ok";
}
function autovcard_on_ok() {
window.openDialog("chrome://messenger/content/addressbook/abNewCardDialog.xul",
"",
"chrome,modal,resizable=no,centerscreen",
{escapedVCardStr:"begin%3Avcard%0D%0Aversion%3A2.1%0D%0Aend%3Avcard%0D%0A%0D%0A", okCallback:autovcard_callback,titleProperty:"editVCardTitle", hideABPicker:true});
if(window.arguments[0].out == "ok"){
return true;
}else{
return false;
}
}
]]>
</script>
<vbox style='margin: 1em'>
<label value="&autovcard.dialog.label;"/>
</vbox>
</dialog>