home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2011 November
/
CHIP_2011_11.iso
/
Programy
/
Narzedzia
/
AIMP2
/
aimp_2.61.583.exe
/
$TEMP
/
YandexPackSetup.msi
/
fil0C006F68E213AAA5A2624824DAEDAA5F
< prev
next >
Wrap
Text File
|
2010-07-12
|
1KB
|
40 lines
var YaAbout = {
nsIYa: Cc["@yandex.ru/yasearch;1"].getService(Ci.nsIYaSearch).wrappedJSObject,
onDialogLoad: function() {
this.fillAppInfo();
},
fillAppInfo: function() {
const nsIYa = this.nsIYa;
let extensionVersion = nsIYa.barExtensionMajorVersion;
let barVersionSpan = document.getElementById("bar-version").lastChild;
barVersionSpan.textContent = extensionVersion;
barVersionSpan.setAttribute("tooltiptext", extensionVersion + "." + nsIYa.versionBuild);
let versionStr = nsIYa.version;
let copyrightYearSpan = document.getElementById("copyright-year");
let copyrightYearValue = parseInt(versionStr.substr(0,4), 10);
if (parseInt(copyrightYearSpan.textContent, 10) < copyrightYearValue)
copyrightYearSpan.textContent = copyrightYearValue;
versionStr = [versionStr.substr(6,2), versionStr.substr(4,2), versionStr.substr(0,4)].join(".");
document.getElementById("bar-date").lastChild.textContent = versionStr;
},
openBarSite: function(aLinkElement) {
var href = aLinkElement.getAttribute("href");
this.nsIYa.loadURI(href, "tab", {action:3010});
setTimeout(function() {
document.documentElement.cancelDialog();
}, 2);
return false;
}
}