From 4d17e720ea4ae6ce99534ad074fa180a09ecdc0c Mon Sep 17 00:00:00 2001 From: Jon Atkins Date: Thu, 13 Feb 2014 20:23:12 +0000 Subject: [PATCH] add note to artifact table when there are zero rows --- code/artifact.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/code/artifact.js b/code/artifact.js index 736587bf..f816c3c0 100644 --- a/code/artifact.js +++ b/code/artifact.js @@ -283,6 +283,11 @@ window.artifact.showArtifactList = function() { } }); + // check for no rows, and add a note to the table instead + if (tableRows.length == 0) { + html += 'No portals at this time'; + } + // sort the rows tableRows.sort(function(a,b) { return a[0]-b[0]; @@ -291,6 +296,7 @@ window.artifact.showArtifactList = function() { // and add them to the table html += tableRows.map(function(a){return a[1];}).join(''); + html += ''; });