mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-08-06 13:26:38 +02:00
Fixes broken links in custom headers/footers. Updates default options.
This commit is contained in:
@@ -15,20 +15,24 @@
|
|||||||
|
|
||||||
rootAbsHref: "/",
|
rootAbsHref: "/",
|
||||||
h5aiAbsHref: "/_h5ai/",
|
h5aiAbsHref: "/_h5ai/",
|
||||||
customHeader: "_h5ai.header.html",
|
|
||||||
customFooter: "_h5ai.footer.html",
|
customHeader: null,
|
||||||
|
customFooter: null,
|
||||||
|
|
||||||
viewmodes: ["details", "icons"],
|
viewmodes: ["details", "icons"],
|
||||||
sortorder: "na",
|
sortorder: "na",
|
||||||
showTree: true,
|
showTree: true,
|
||||||
slideTree: true,
|
slideTree: true,
|
||||||
folderStatus: {},
|
folderStatus: {},
|
||||||
lang: null,
|
lang: "en",
|
||||||
useBrowserLang: true,
|
useBrowserLang: true,
|
||||||
setParentFolderLabels: true,
|
setParentFolderLabels: true,
|
||||||
linkHoverStates: true,
|
linkHoverStates: true,
|
||||||
dateFormat: "yyyy-MM-dd HH:mm",
|
dateFormat: "yyyy-MM-dd HH:mm",
|
||||||
|
|
||||||
showThumbs: false,
|
showThumbs: false,
|
||||||
|
thumbTypes: ["bmp", "gif", "ico", "image", "jpg", "png", "tiff"],
|
||||||
|
|
||||||
zippedDownload: false
|
zippedDownload: false
|
||||||
},
|
},
|
||||||
settings = $.extend({}, defaults, config.options),
|
settings = $.extend({}, defaults, config.options),
|
||||||
|
@@ -97,7 +97,7 @@
|
|||||||
.appendTo($("#navbar"));
|
.appendTo($("#navbar"));
|
||||||
|
|
||||||
$("body>nav,body>footer,#tree").on("mousedown", noSelection);
|
$("body>nav,body>footer,#tree").on("mousedown", noSelection);
|
||||||
$("#extended").on("mousedown", "a", noSelectionUnlessCtrl);
|
$("#content").on("mousedown", "a", noSelectionUnlessCtrl);
|
||||||
$document.on("mousedown", selectionStart);
|
$document.on("mousedown", selectionStart);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user