diff --git a/lib/client/dom.js b/lib/client/dom.js index 41087320..7faeb518 100644 --- a/lib/client/dom.js +++ b/lib/client/dom.js @@ -460,7 +460,13 @@ var CloudCmd, Util, DOM, CloudFunc, Dialog; lName = Dialog.prompt(lMsg, lName); if (lName) - RESTful.write(lDir + lName + lType, null, CloudCmd.refresh); + RESTful.write(lDir + lName + lType, null, function() { + CloudCmd.refresh(null, null, function() { + var current = DOM.getCurrentFileByName(lName); + + DOM.setCurrentFile(current); + }); + }); } function twopack(current, operation) {