diff --git a/lib/client/edit.js b/lib/client/edit.js index a30a74b0..83109a3b 100644 --- a/lib/client/edit.js +++ b/lib/client/edit.js @@ -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); });