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 / fil280461EE42F22769C97DB5F3477747B0 < prev    next >
Text File  |  2010-07-12  |  771b  |  24 lines

  1. var YaBookmarksRegRequired = {
  2.   nsIYaSearch: Components.classes["@yandex.ru/yasearch;1"].getService(Components.interfaces.nsIYaSearch).wrappedJSObject,
  3.  
  4.   getString: function(aStr) {
  5.     return this.nsIYaSearch.yaBookmarks.getString(aStr);
  6.   },
  7.  
  8.   onDialogLoad: function() {
  9.     document.title = this.getString("Error_reg_required_Title");
  10.     document.getElementById("regrequired-text").innerHTML = this.getString("Error_reg_required_Message");
  11.   },
  12.  
  13.   handleWindowClick: function(aEvent) {
  14.     var targetHref = aEvent.originalTarget.getAttribute("href");
  15.     if (!targetHref)
  16.       return true;
  17.  
  18.     setTimeout(function() {
  19.       document.documentElement.cancelDialog();
  20.     }, 2);
  21.  
  22.     return !this.nsIYaSearch.loadURI(targetHref, "tab");
  23.   }
  24. }