mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
f2c0e4b0be
overview box. p=ben_h, r=zach.
32 lines
835 B
JavaScript
Executable File
32 lines
835 B
JavaScript
Executable File
var qaMain = {
|
|
htmlNS: "http://www.w3.org/1999/xhtml",
|
|
|
|
openQATool : function() {
|
|
window.open("chrome://qa/content/qa.xul", "_blank", "chrome,all,dialog=no,resizable=no");
|
|
},
|
|
onToolOpen : function() {
|
|
if (qaPref.getPref(qaPref.prefBase+'.isFirstTime', 'bool') == true) {
|
|
window.open("chrome://qa/content/setup.xul", "_blank", "chrome,all,dialog=yes");
|
|
}
|
|
|
|
},
|
|
};
|
|
qaMain.__defineGetter__("bundle", function(){return $("bundle_qa");});
|
|
qaMain.__defineGetter__("urlbundle", function(){return $("bundle_urls");});
|
|
function $() {
|
|
var elements = new Array();
|
|
|
|
for (var i = 0; i < arguments.length; i++) {
|
|
var element = arguments[i];
|
|
if (typeof element == 'string')
|
|
element = document.getElementById(element);
|
|
|
|
if (arguments.length == 1)
|
|
return element;
|
|
|
|
elements.push(element);
|
|
}
|
|
|
|
return elements;
|
|
}
|