From f51a0b80a712e3e36adf86f60272beac9e4dae4f Mon Sep 17 00:00:00 2001 From: Lars Jung Date: Fri, 17 Feb 2012 13:47:09 +0100 Subject: [PATCH] Js version uses settings.thumbTypes too. --- src/_h5ai/js/inc/Html.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/_h5ai/js/inc/Html.js b/src/_h5ai/js/inc/Html.js index 6b092e47..12bd1b6d 100644 --- a/src/_h5ai/js/inc/Html.js +++ b/src/_h5ai/js/inc/Html.js @@ -3,8 +3,7 @@ H5AI.html = (function () { - var thumbTypes = ["bmp", "gif", "ico", "image", "jpg", "png", "tiff"], - onClick = function (path, context) { + var onClick = function (path, context) { }, updateCrumbHtml = function (path) { @@ -72,7 +71,7 @@ $html.data("status", path.status); } - if (H5AI.core.settings.showThumbs === true && $.inArray(path.type, thumbTypes) >= 0) { + if (H5AI.core.settings.showThumbs === true && $.inArray(path.type, H5AI.core.settings.thumbTypes) >= 0) { imgClass = "class='thumb'"; var escapedHref = path.absHref.replace(/'/g, "%27").replace(/"/g, "%22"); icon16 = H5AI.core.api() + "?action=thumb&href=" + escapedHref + "&width=16&height=16&mode=square";