Advertisement
Guest User

ggfg

a guest
Dec 28th, 2016
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     _loc1.onData = function ()
  2.     {
  3.         var _loc2 = "<font color=\"#EBE3CB\">";
  4.         var _loc3 = 0;
  5.        
  6.         while (++_loc3, _loc3 < this._siServerStatus.problems.length)
  7.         {
  8.             var _loc4 = this._siServerStatus.problems[_loc3];
  9.             _loc2 = _loc2 + (_loc4.date + "\n");
  10.             _loc2 = _loc2 + (" <b>" + _loc4.type + "</b>\n");
  11.             _loc2 = _loc2 + (" <i>" + this.api.lang.getText("STATE_WORD") + "</i>: " + _loc4.status + "\n");
  12.             _loc2 = _loc2 + (" <i>" + this.api.lang.getText("INVOLVED_SERVERS") + "</i>: " + _loc4.servers.join(", ") + "\n");
  13.             _loc2 = _loc2 + (" <i>" + this.api.lang.getText("HISTORY_WORD") + "</i>:\n");
  14.             var _loc5 = 0;
  15.            
  16.             while (++_loc5, _loc5 < _loc4.history.length)
  17.             {
  18.                 _loc2 = _loc2 + ("  <b>" + _loc4.history[_loc5].hour + "</b>");
  19.                 if (_loc4.history[_loc5].title != "undefined")
  20.                 {
  21.                     _loc2 = _loc2 + (" : " + _loc4.history[_loc5].title + "\n   ");
  22.                 }
  23.                 else
  24.                 {
  25.                     _loc2 = _loc2 + " - ";
  26.                 } // end else if
  27.                 if (_loc4.history[_loc5].content != undefined)
  28.                 {
  29.                     _loc2 = _loc2 + _loc4.history[_loc5].content;
  30.                     if (!_loc4.history[_loc5].translated)
  31.                     {
  32.                         _loc2 = _loc2 + this.api.lang.getText("TRANSLATION_IN_PROGRESS");
  33.                     } // end if
  34.                 } // end if
  35.                 _loc2 = _loc2 + "\n";
  36.             } // end while
  37.             _loc2 = _loc2 + "\n";
  38.         } // end while
  39.         _loc2 = _loc2 + "</font>";
  40.         this._taServerStatus.text = _loc2;
  41.         if (this._siServerStatus.isOnFocus)
  42.         {
  43.             this.showServerStatus();
  44.             this._bGoToStatusIsShown = true;
  45.         }
  46.         else if (this._siServerStatus.problems.length > 0)
  47.         {
  48.             this.showGoToStatus();
  49.         }
  50.         else
  51.         {
  52.             this.hideGoToStatus();
  53.         } // end else if
  54.     };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement