refactor(edit) add RESTful

This commit is contained in:
coderaiser 2014-06-02 10:43:41 -04:00
parent e60a461146
commit da202afdd9

View file

@ -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);
}
}