mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-19 09:24:51 +00:00
feature(dom) promptNew: set current new file/folder
This commit is contained in:
parent
8789920e8f
commit
77debf311d
1 changed files with 7 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue