From 1a8ef621888a546c3c37f4529dfd519ca4eb2c66 Mon Sep 17 00:00:00 2001 From: Lars Jung Date: Fri, 17 Feb 2012 03:23:42 +0100 Subject: [PATCH] Fixes broken links in custom headers/footers. Updates default options. --- src/_h5ai/js/inc/Core.js | 10 +++++++--- src/_h5ai/js/inc/ZippedDownload.js | 2 +- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/_h5ai/js/inc/Core.js b/src/_h5ai/js/inc/Core.js index 3790e899..b4738be8 100644 --- a/src/_h5ai/js/inc/Core.js +++ b/src/_h5ai/js/inc/Core.js @@ -15,20 +15,24 @@ rootAbsHref: "/", h5aiAbsHref: "/_h5ai/", - customHeader: "_h5ai.header.html", - customFooter: "_h5ai.footer.html", + + customHeader: null, + customFooter: null, viewmodes: ["details", "icons"], sortorder: "na", showTree: true, slideTree: true, folderStatus: {}, - lang: null, + lang: "en", useBrowserLang: true, setParentFolderLabels: true, linkHoverStates: true, dateFormat: "yyyy-MM-dd HH:mm", + showThumbs: false, + thumbTypes: ["bmp", "gif", "ico", "image", "jpg", "png", "tiff"], + zippedDownload: false }, settings = $.extend({}, defaults, config.options), diff --git a/src/_h5ai/js/inc/ZippedDownload.js b/src/_h5ai/js/inc/ZippedDownload.js index 375b9585..b2388ab0 100644 --- a/src/_h5ai/js/inc/ZippedDownload.js +++ b/src/_h5ai/js/inc/ZippedDownload.js @@ -97,7 +97,7 @@ .appendTo($("#navbar")); $("body>nav,body>footer,#tree").on("mousedown", noSelection); - $("#extended").on("mousedown", "a", noSelectionUnlessCtrl); + $("#content").on("mousedown", "a", noSelectionUnlessCtrl); $document.on("mousedown", selectionStart); } };