From f8299fa556c790ba9f6162e7f74f5824aa11315f Mon Sep 17 00:00:00 2001 From: coderaiser Date: Wed, 25 Feb 2015 11:17:44 -0500 Subject: [PATCH] fix(edit) show: name -> Info.name --- lib/client/edit.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/client/edit.js b/lib/client/edit.js index 5e873705..4afb6f7d 100644 --- a/lib/client/edit.js +++ b/lib/client/edit.js @@ -67,7 +67,6 @@ var CloudCmd, Util, DOM, CloudFunc, MenuIO, Format, edward; this.show = function(callback) { Images.show.load(); - setMsgChanged(name); if (callback) ConfigView.beforeShow = callback; @@ -82,6 +81,8 @@ var CloudCmd, Util, DOM, CloudFunc, MenuIO, Format, edward; var isDir = Info.isDir, name = Info.name; + setMsgChanged(name); + if (isDir) name += '.json';