mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-20 18:18:56 +00:00
feature(edit) add saveDataToCache
This commit is contained in:
parent
f528c351fa
commit
9e36587f7a
1 changed files with 7 additions and 7 deletions
|
|
@ -132,7 +132,7 @@ var CloudCmd, Util, DOM, CloudFunc, ace, DiffProto, diff_match_patch;
|
|||
query = '?patch';
|
||||
}
|
||||
|
||||
DOM.saveCurrentData(lPath, lValue, onSave, query);
|
||||
DOM.RESTful.save(lPath, lValue, onSave, query);
|
||||
}, function(callback) {
|
||||
diff(lValue, callback);
|
||||
});
|
||||
|
|
@ -192,15 +192,15 @@ var CloudCmd, Util, DOM, CloudFunc, ace, DiffProto, diff_match_patch;
|
|||
path = DOM.getCurrentPath(),
|
||||
msg = '\nShould I save file anyway?';
|
||||
|
||||
if (!isError)
|
||||
if (!isError) {
|
||||
Value = Ace.getValue();
|
||||
Edit.showMessage(text);
|
||||
else {
|
||||
ret = Dialog.confirm(text + msg);
|
||||
DOM.saveDataToCache(path, Value);
|
||||
} else {
|
||||
ret = Dialog.confirm(text + msg);
|
||||
|
||||
if (ret) {
|
||||
if (ret)
|
||||
DOM.RESTful.save(path, Value, onSave);
|
||||
Value = Ace.getValue();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue