mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-05-29 22:45:14 -04:00
Add option where to place folders.
This commit is contained in:
parent
e61bba9554
commit
626c8563f2
3 changed files with 12 additions and 3 deletions
|
@ -9,7 +9,8 @@
|
||||||
* adds icons from [Evolvere Icon Theme](http://franksouza183.deviantart.com/art/Evolvere-Icon-theme-440718295)
|
* adds icons from [Evolvere Icon Theme](http://franksouza183.deviantart.com/art/Evolvere-Icon-theme-440718295)
|
||||||
* adds PHP variant to calc folder sizes
|
* adds PHP variant to calc folder sizes
|
||||||
* adds scroll position reset on location change (issue [#279](https://github.com/lrsjng/h5ai/issues/279))
|
* adds scroll position reset on location change (issue [#279](https://github.com/lrsjng/h5ai/issues/279))
|
||||||
* adds "hide if 403" option
|
* adds option to hide unreadable files
|
||||||
|
* adds option where to place folders (top, inplace, bottom)
|
||||||
* fixes QR code URI origin (issue [#287](https://github.com/lrsjng/h5ai/issues/287))
|
* fixes QR code URI origin (issue [#287](https://github.com/lrsjng/h5ai/issues/287))
|
||||||
* adds Google UA support
|
* adds Google UA support
|
||||||
* extends selectable icon sizes (adds 128px, 192px, 256px, 384px)
|
* extends selectable icon sizes (adds 128px, 192px, 256px, 384px)
|
||||||
|
|
|
@ -6,7 +6,8 @@ modulejs.define('ext/sort', ['_', '$', 'core/settings', 'core/resource', 'core/e
|
||||||
column: 0,
|
column: 0,
|
||||||
reverse: false,
|
reverse: false,
|
||||||
ignorecase: true,
|
ignorecase: true,
|
||||||
natural: false
|
natural: false,
|
||||||
|
folders: 0
|
||||||
}, allsettings.sort),
|
}, allsettings.sort),
|
||||||
|
|
||||||
storekey = 'ext/sort',
|
storekey = 'ext/sort',
|
||||||
|
@ -21,6 +22,11 @@ modulejs.define('ext/sort', ['_', '$', 'core/settings', 'core/resource', 'core/e
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
if ($item.hasClass('folder')) {
|
if ($item.hasClass('folder')) {
|
||||||
|
if (settings.folders === 1) {
|
||||||
|
return 2;
|
||||||
|
} else if (settings.folders === 2) {
|
||||||
|
return 3;
|
||||||
|
}
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
return 2;
|
return 2;
|
||||||
|
|
|
@ -305,13 +305,15 @@ Options
|
||||||
- reverse: boolean, false for ascending, true for descending
|
- reverse: boolean, false for ascending, true for descending
|
||||||
- ignorecase: boolean, compare ignorecase
|
- ignorecase: boolean, compare ignorecase
|
||||||
- natural: boolean, use natural sort order
|
- natural: boolean, use natural sort order
|
||||||
|
- folders: where to place folders, 0 for "top", 1 for "in place", 2 for "bottom"
|
||||||
*/
|
*/
|
||||||
"sort": {
|
"sort": {
|
||||||
"enabled": true,
|
"enabled": true,
|
||||||
"column": 0,
|
"column": 0,
|
||||||
"reverse": false,
|
"reverse": false,
|
||||||
"ignorecase": true,
|
"ignorecase": true,
|
||||||
"natural": false
|
"natural": false,
|
||||||
|
"folders": 0
|
||||||
},
|
},
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue