mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 18:55:26 +00:00
fix(edit) set Value befor onSave
This commit is contained in:
parent
0894835e6c
commit
6e3cc80b00
1 changed files with 2 additions and 1 deletions
|
|
@ -127,6 +127,8 @@ var CloudCmd, Util, DOM, CloudFunc, ace, DiffProto, diff_match_patch;
|
|||
Util.ifExec(!isDiff, function(patch) {
|
||||
var query;
|
||||
|
||||
Value = lValue;
|
||||
|
||||
if (Util.isString(patch)) {
|
||||
lValue = patch;
|
||||
query = '?patch';
|
||||
|
|
@ -193,7 +195,6 @@ var CloudCmd, Util, DOM, CloudFunc, ace, DiffProto, diff_match_patch;
|
|||
msg = '\nShould I save file anyway?';
|
||||
|
||||
if (!isError) {
|
||||
Value = Ace.getValue();
|
||||
Edit.showMessage(text);
|
||||
DOM.saveDataToCache(path, Value);
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue