Browse Source

[COMM] Fix license window

custom-2020
Matt A. Tobin 3 years ago committed by Roy Tam
parent
commit
0c99966c9b
  1. 16
      communicator/components/eula/content/eula.js
  2. 4
      communicator/modules/Communicator.jsm

16
communicator/components/eula/content/eula.js

@ -3,13 +3,15 @@ Components.utils.import("resource://gre/modules/Communicator.jsm");
function Startup() {
main = document.getElementById("main");
let textbox = document.createElement("textbox");
textbox.setAttribute("id", "eula");
textbox.setAttribute("readonly", "true");
textbox.setAttribute("multiline", "true");
textbox.setAttribute("cols", "80");
textbox.setAttribute("rows", "20");
textbox.setAttribute("style", "resize: none; font-family: -moz-fixed;");
textbox.setAttribute("value", Communicator.readfile("GreD", "license.txt"));
[
["id", "eula"],
["readonly", "true"],
["multiline", "true"],
["cols", "80"],
["rows", "20"],
["style", "resize: none; font-family: -moz-fixed;"],
["value", Communicator.readfile("GreD", "license.txt")]
].forEach(([name, value]) => textbox.setAttribute(name, value));
main.appendChild(textbox);
}

4
communicator/modules/Communicator.jsm

@ -41,9 +41,9 @@ this.Communicator = {
}
catch (ex) { }
if (!eulaDone || aReviewOnly) {
if (!eulaDone) {
Services.ww.openWindow(null, "chrome://communicator/content/eula/eula.xul",
"_blank", "chrome,centerscreen,modal,resizable=no");
"_blank", "chrome,centerscreen,modal,resizable=no", null);
}
},
readfile: function(aDSDir, aFile) {

Loading…
Cancel
Save