mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-05-24 20:14:37 -04:00
Js version uses settings.thumbTypes too.
This commit is contained in:
parent
d56d0716cb
commit
f51a0b80a7
1 changed files with 2 additions and 3 deletions
|
@ -3,8 +3,7 @@
|
||||||
|
|
||||||
H5AI.html = (function () {
|
H5AI.html = (function () {
|
||||||
|
|
||||||
var thumbTypes = ["bmp", "gif", "ico", "image", "jpg", "png", "tiff"],
|
var onClick = function (path, context) {
|
||||||
onClick = function (path, context) {
|
|
||||||
|
|
||||||
},
|
},
|
||||||
updateCrumbHtml = function (path) {
|
updateCrumbHtml = function (path) {
|
||||||
|
@ -72,7 +71,7 @@
|
||||||
$html.data("status", path.status);
|
$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'";
|
imgClass = "class='thumb'";
|
||||||
var escapedHref = path.absHref.replace(/'/g, "%27").replace(/"/g, "%22");
|
var escapedHref = path.absHref.replace(/'/g, "%27").replace(/"/g, "%22");
|
||||||
icon16 = H5AI.core.api() + "?action=thumb&href=" + escapedHref + "&width=16&height=16&mode=square";
|
icon16 = H5AI.core.api() + "?action=thumb&href=" + escapedHref + "&width=16&height=16&mode=square";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue