
var HangarXPLOR = HangarXPLOR || {};

// Pre-process all the items in a document, then load the next page, or render the UI
HangarXPLOR.ProcessPage = function($page, pageNo)
{
  var $lists = $('.list-items', $page);
  
  var isEmpty = $('.empty-list', $page).length == 1;
  isEmpty |= $('.empy-list', $page).length == 1;
  
  // Check to see if we have 2 lists - The Hangar, and the Inventory
  if (!isEmpty)
  {
    var $items = $('li', $lists[0]);
      
    $items.each(HangarXPLOR.ProcessItem);
      
    if ($items.length < 100)
    {
      HangarXPLOR.DrawUI();
    } else {
      HangarXPLOR.LoadPage(pageNo + 1);
    }
  } else {
    HangarXPLOR.DrawUI();
  }
}


var HangarXPLOR = HangarXPLOR || {};

// Pre-process all the items in a document, then load the next page, or render the UI
HangarXPLOR.ProcessPage = function($page, pageNo)
{
  var $lists = $('.list-items', $page);
  
  var $items = $('.list-items > li', $page);
      
  $items.each(HangarXPLOR.ProcessItem);
      
  if ($items.length < 100)
  {
    HangarXPLOR.DrawUI();
  } else {
    HangarXPLOR.LoadPage(pageNo + 1);
  }
}

Support 300 series customization