Rename smartBrowsing to fastBrowsing.

This commit is contained in:
Lars Jung 2015-04-24 22:22:15 +02:00
parent c03fd20bae
commit 0be36ea9e8
2 changed files with 4 additions and 4 deletions

View file

@ -1,11 +1,11 @@
modulejs.define('core/location', ['_', 'modernizr', 'core/event', 'core/notify', 'core/settings'], function (_, modernizr, event, notify, allsettings) { modulejs.define('core/location', ['_', 'modernizr', 'core/event', 'core/notify', 'core/settings'], function (_, modernizr, event, notify, allsettings) {
var settings = _.extend({ var settings = _.extend({
smartBrowsing: true, fastBrowsing: true,
unmanagedInNewWindow: true unmanagedInNewWindow: true
}, allsettings.view); }, allsettings.view);
var doc = document; 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 reUriToPathname = /^.*:\/\/[^\/]*|[^\/]*$/g;
var absHref = null; var absHref = null;

View file

@ -10,6 +10,7 @@ Options
General view options. General view options.
- binaryPrefix: boolean, set to true uses 1024B=1KiB when formatting file sizes (see http://en.wikipedia.org/wiki/Binary_prefix) - 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 - hidden: array of strings, don't list items matching these regular expressions
- hideFolders: boolean, hide all folders in the main view - hideFolders: boolean, hide all folders in the main view
- hideIf403: boolean, hide files and folders that are not readable by the server - 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. 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 The user selected view size is also stored local in modern browsers
so that it will be persistent. 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" - 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 - unmanaged: array of strings, don't manage folders containing one of those files
- unmanagedInNewWindow: boolean, open unmanaged links in new window/tab - unmanagedInNewWindow: boolean, open unmanaged links in new window/tab
*/ */
"view": { "view": {
"binaryPrefix": false, "binaryPrefix": false,
"fastBrowsing": true,
"hidden": ["^\\.", "^_{{pkg.name}}"], "hidden": ["^\\.", "^_{{pkg.name}}"],
"hideFolders": false, "hideFolders": false,
"hideIf403": true, "hideIf403": true,
@ -39,7 +40,6 @@ Options
"modes": ["details", "grid", "icons"], "modes": ["details", "grid", "icons"],
"setParentFolderLabels": true, "setParentFolderLabels": true,
"sizes": [20, 40, 60, 80, 100, 150, 200, 250, 300, 350, 400], "sizes": [20, 40, 60, 80, 100, 150, 200, 250, 300, 350, 400],
"smartBrowsing": true,
"theme": "", "theme": "",
"unmanaged": ["index.html", "index.htm", "index.php"], "unmanaged": ["index.html", "index.htm", "index.php"],
"unmanagedInNewWindow": false "unmanagedInNewWindow": false