refactor(edit) show: setModeForPath

This commit is contained in:
coderaiser 2015-02-25 09:07:54 -05:00
parent 10af92ec77
commit e9d2c509a8

View file

@ -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);
});