From e9d2c509a8f7fc0d9bbb2bc549fee555dd98d65a Mon Sep 17 00:00:00 2001 From: coderaiser Date: Wed, 25 Feb 2015 09:07:54 -0500 Subject: [PATCH] refactor(edit) show: setModeForPath --- lib/client/edit.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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); });