mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 18:55:26 +00:00
refactor(client) rmLastSlash
This commit is contained in:
parent
bc4945f804
commit
2562fc37f1
1 changed files with 3 additions and 3 deletions
|
|
@ -259,7 +259,7 @@ var Util, DOM, CloudFunc, join;
|
|||
Listeners.initKeysPanel();
|
||||
|
||||
/* Устанавливаем кэш корневого каталога */
|
||||
dirPath = CloudFunc.rmLastSlash(dirPath) || '/';
|
||||
dirPath = CloudFunc.rmLastSlash(dirPath);
|
||||
|
||||
Storage.get(dirPath, function(error, data) {
|
||||
if (!data) {
|
||||
|
|
@ -292,7 +292,7 @@ var Util, DOM, CloudFunc, join;
|
|||
var panel = panelParam || Info.panel,
|
||||
NEEDREFRESH = true,
|
||||
path = DOM.getCurrentDirPath(panel),
|
||||
notSlashlLink = CloudFunc.rmLastSlash(path) || '/';
|
||||
notSlashlLink = CloudFunc.rmLastSlash(path);
|
||||
|
||||
CloudCmd.loadDir({
|
||||
path : notSlashlLink,
|
||||
|
|
@ -455,7 +455,7 @@ var Util, DOM, CloudFunc, join;
|
|||
|
||||
if (path !== parentPath) {
|
||||
path = parentPath;
|
||||
path = CloudFunc.rmLastSlash(path) || '/';
|
||||
path = CloudFunc.rmLastSlash(path);
|
||||
|
||||
CloudCmd.loadDir({
|
||||
path: path
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue