mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
refactor(edit) add RESTful
This commit is contained in:
parent
e60a461146
commit
da202afdd9
1 changed files with 3 additions and 2 deletions
|
|
@ -20,6 +20,7 @@ var CloudCmd, Util, DOM, CloudFunc, ace, DiffProto, diff_match_patch, Zip, MenuI
|
|||
Modelist,
|
||||
Msg,
|
||||
Events = DOM.Events,
|
||||
RESTful = DOM.RESTful,
|
||||
Dialog = DOM.Dialog,
|
||||
Images = DOM.Images,
|
||||
Element, JSHintConfig, EditConfig,
|
||||
|
|
@ -257,7 +258,7 @@ var CloudCmd, Util, DOM, CloudFunc, ace, DiffProto, diff_match_patch, Zip, MenuI
|
|||
var result = data || patch || Value,
|
||||
url = path + query;
|
||||
|
||||
DOM.RESTful.write(url, result , onSave);
|
||||
RESTful.write(url, result , onSave);
|
||||
}, function(func) {
|
||||
zip(value, function(error, data) {
|
||||
if (error)
|
||||
|
|
@ -437,7 +438,7 @@ var CloudCmd, Util, DOM, CloudFunc, ace, DiffProto, diff_match_patch, Zip, MenuI
|
|||
ret = Dialog.confirm(text + msg);
|
||||
|
||||
if (ret)
|
||||
DOM.RESTful.write(path, Value, onSave);
|
||||
RESTful.write(path, Value, onSave);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue