Skip to content

Commit

Permalink
Merge pull request #28 from dolkensp/fix-empty-support
Browse files Browse the repository at this point in the history
Fix empty list detection
  • Loading branch information
peter-dolkens authored Sep 30, 2018
2 parents 487b2be + ea2eb1f commit f452d28
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 f452d28

Please sign in to comment.