Browse Source

[COMM] Complete EULA

custom-2020
Matt A. Tobin 3 years ago committed by Roy Tam
parent
commit
48b405da09
  1. 4
      communicator/components/eula/content/eula.js
  2. 9
      communicator/components/eula/content/eula.xul
  3. 1
      communicator/components/eula/locale/eula.dtd
  4. 2
      communicator/modules/Communicator.jsm

4
communicator/components/eula/content/eula.js

@ -16,6 +16,10 @@ function Startup() {
}
function onAccept() {
Communicator.service.prefs.setBoolPref("app.eula.accepted", true);
}
function onCancel() {
Communicator.service.startup.quit(Communicator.service.startup.eForceQuit);
}

9
communicator/components/eula/content/eula.xul

@ -13,9 +13,11 @@
xmlns:xhtml="http://www.w3.org/1999/xhtml"
id="comm-eula"
title="&brandFullName;"
buttons="accept"
buttons="accept,cancel"
buttonlabelaccept="&eula.accept.label;"
buttonlabelcancel="&eula.cancel.label;"
ondialogaccept="return onAccept();"
ondialogcancel="onCancel();"
onload="Startup();">
<script type="application/javascript" src="chrome://communicator/content/eula/eula.js"/>
@ -27,9 +29,4 @@
</vbox>
<separator class="groove-thin"/>
<hbox>
<spacer flex="1"/>
<button dlgtype="accept"/>
</hbox>
</dialog>

1
communicator/components/eula/locale/eula.dtd

@ -4,5 +4,6 @@
<!ENTITY eula.title "&brandFullName;">
<!ENTITY eula.accept.label "Agree">
<!ENTITY eula.cancel.label "Decline">
<!ENTITY eula.header.title "License Agreement">
<!ENTITY eula.header.description "Please review the license terms before using &brandFullName;">

2
communicator/modules/Communicator.jsm

@ -69,7 +69,7 @@ this.Communicator = {
}
}
this.services = Services;
this.service = Services;
this.xpcom = XPCOMUtils;
},
}

Loading…
Cancel
Save