Fix UI bugs

This commit is contained in:
2019-10-26 20:28:29 -04:00
parent cbb043f03f
commit 85ab2858f6
4 changed files with 5 additions and 6 deletions

View File

@@ -170,11 +170,10 @@ function createDocCard(hit) {
}
//Tags
//todo: handle new tags
switch (mimeCategory) {
case "video":
case "image":
if (hit.hasOwnProperty("videoc")) {
if (hit["_source"].hasOwnProperty("videoc")) {
let formatTag = document.createElement("span");
formatTag.setAttribute("class", "badge badge-pill badge-video");
formatTag.appendChild(document.createTextNode(hit["_source"]["videoc"].replace(" ", "")));
@@ -182,7 +181,7 @@ function createDocCard(hit) {
}
break;
case "audio": {
if (hit.hasOwnProperty("audioc")) {
if (hit["_source"].hasOwnProperty("audioc")) {
let formatTag = document.createElement("span");
formatTag.setAttribute("class", "badge badge-pill badge-audio");
formatTag.appendChild(document.createTextNode(hit["_source"]["audioc"]));

View File

@@ -1,4 +1,4 @@
const SIZE = 20;
const SIZE = 40;
let mimeMap = [];
let tree;