Skip to content

Commit

Permalink
Fix empty list detection
Browse files Browse the repository at this point in the history
  • Loading branch information
peter-dolkens committed Sep 30, 2018
1 parent 487b2be commit ea2eb1f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/web_resources/HangarXPLOR.ProcessPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,12 @@ var HangarXPLOR = HangarXPLOR || {};
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 ($lists.length == 1)
if (!isEmpty)
{
var $items = $('li', $lists[0]);

Expand Down

0 comments on commit ea2eb1f

Please sign in to comment.