From 0be36ea9e8fe64890aa0dfad9c724da097abf0fd Mon Sep 17 00:00:00 2001 From: Lars Jung Date: Fri, 24 Apr 2015 22:22:15 +0200 Subject: [PATCH] Rename smartBrowsing to fastBrowsing. --- src/_h5ai/client/js/inc/core/location.js | 4 ++-- src/_h5ai/conf/options.json | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/_h5ai/client/js/inc/core/location.js b/src/_h5ai/client/js/inc/core/location.js index 8ac0fadd..f0e9b99f 100644 --- a/src/_h5ai/client/js/inc/core/location.js +++ b/src/_h5ai/client/js/inc/core/location.js @@ -1,11 +1,11 @@ modulejs.define('core/location', ['_', 'modernizr', 'core/event', 'core/notify', 'core/settings'], function (_, modernizr, event, notify, allsettings) { var settings = _.extend({ - smartBrowsing: true, + fastBrowsing: true, unmanagedInNewWindow: true }, allsettings.view); var doc = document; - var history = settings.smartBrowsing && modernizr.history ? window.history : null; + var history = settings.fastBrowsing && modernizr.history ? window.history : null; var reUriToPathname = /^.*:\/\/[^\/]*|[^\/]*$/g; var absHref = null; diff --git a/src/_h5ai/conf/options.json b/src/_h5ai/conf/options.json index 6b298179..284cb6ea 100644 --- a/src/_h5ai/conf/options.json +++ b/src/_h5ai/conf/options.json @@ -10,6 +10,7 @@ Options General view options. - binaryPrefix: boolean, set to true uses 1024B=1KiB when formatting file sizes (see http://en.wikipedia.org/wiki/Binary_prefix) + - fastBrowsing: boolean, use History API if available (no need to reload the whole page) - hidden: array of strings, don't list items matching these regular expressions - hideFolders: boolean, hide all folders in the main view - hideIf403: boolean, hide files and folders that are not readable by the server @@ -25,13 +26,13 @@ Options is given the view size is fixed and the selector buttons are hidden. The user selected view size is also stored local in modern browsers so that it will be persistent. - - smartBrowsing: boolean, use History API if available (no need to reload the whole page) - theme: string, name of one of the folders in "_{{pkg.name}}/images/themes", defaults to "default" - unmanaged: array of strings, don't manage folders containing one of those files - unmanagedInNewWindow: boolean, open unmanaged links in new window/tab */ "view": { "binaryPrefix": false, + "fastBrowsing": true, "hidden": ["^\\.", "^_{{pkg.name}}"], "hideFolders": false, "hideIf403": true, @@ -39,7 +40,6 @@ Options "modes": ["details", "grid", "icons"], "setParentFolderLabels": true, "sizes": [20, 40, 60, 80, 100, 150, 200, 250, 300, 350, 400], - "smartBrowsing": true, "theme": "", "unmanaged": ["index.html", "index.htm", "index.php"], "unmanagedInNewWindow": false