mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-26 20:16:15 +08:00
committed by
Sébastien Ros
parent
8fadee4a49
commit
e90f114a8b
@@ -382,7 +382,7 @@ $(function () {
|
||||
/* NTFS uses "\" as the directory separator, but AFS uses "/".
|
||||
Since both of them are illegal characters for file and folder names, it's safe to determine the type of file storage
|
||||
currently in use based on the directory separator character. */
|
||||
var separator = deepestChildPath.contains('/') ? '/' : '\\';
|
||||
var separator = deepestChildPath.indexOf('/') > -1 ? '/' : '\\';
|
||||
|
||||
var deepestChildPathBreadCrumbs = deepestChildPath.split(separator);
|
||||
var currentBreadCrumbs = self.folderPath().split(separator);
|
||||
|
||||
Reference in New Issue
Block a user