accurator/commit
Tweaks for handling no recommendations.
author | Chris Dijkshoorn |
---|---|
Mon Jun 13 14:43:08 2016 +0200 | |
committer | Chris Dijkshoorn |
Mon Jun 13 14:43:08 2016 +0200 | |
commit | 40a9dd178fef7bbc979b667f1cd7974aedfc1edd |
tree | 152a6e554bcfe525b768930d203522ab1bd76e8f |
parent | 07a38ea2c9f94513015c0b4ee4b62d71fb7c378e |
Diff style: patch stat
diff --git a/web/js/results.js b/web/js/results.js index aef031b..acdd128 100644 --- a/web/js/results.js +++ b/web/js/results.js @@ -201,7 +201,7 @@ function random(query, labels, target, noResults, domainData) { randomCluster(target, noResults) .then(function(cluster) { // if there are any results retrieved, then draw them - if (cluster.length > 0) { + if (cluster.uris.length > 0) { var clusters = []; clusters[0] = cluster; @@ -378,7 +378,8 @@ function statusMessage(header, text){ $("#resultsDiv").html( $.el.div({'class':'row resultsDivStatus'}, $.el.div({'class':'col-lg-10 col-md-offset-1'}, - $.el.h3(header)), + $.el.h3({'class':'text-center'}, + header)), $.el.div({'class':'row'}, $.el.div({'class':'col-md-10 col-md-offset-1'}, text)))