feature(dom) promptNew: set current new file/folder

This commit is contained in:
coderaiser 2014-10-05 07:56:25 -04:00
parent 8789920e8f
commit 77debf311d

View file

@ -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) {