mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
refactor(edit) show: setModeForPath
This commit is contained in:
parent
10af92ec77
commit
e9d2c509a8
1 changed files with 3 additions and 3 deletions
|
|
@ -83,9 +83,9 @@ var CloudCmd, Util, DOM, CloudFunc, MenuIO, Format, edward;
|
|||
name = Info.name;
|
||||
|
||||
if (isDir)
|
||||
edward.setMode('json');
|
||||
else
|
||||
edward.setModeForPath(name);
|
||||
name +='.json';
|
||||
|
||||
edward.setModeForPath(name);
|
||||
|
||||
CloudCmd.View.show(Element, ConfigView);
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue