mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-28 10:14:13 +00:00
feature(dom) add saveCurrentData
This commit is contained in:
parent
2332b147e5
commit
c1a7796843
1 changed files with 13 additions and 0 deletions
|
|
@ -1511,6 +1511,19 @@ var CloudCmd, Util, DOM, CloudFunc, Dialog;
|
|||
});
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* unified way to save current file content
|
||||
*
|
||||
* @pCallBack - function({data, name}) {}
|
||||
* @pCurrentFile
|
||||
*/
|
||||
this.saveCurrentData = function(pUrl, pData, pCallBack, pQuery) {
|
||||
RESTful.save(pUrl, pData, function() {
|
||||
DOM.saveDataInCache(pUrl, pData);
|
||||
}, pQuery);
|
||||
};
|
||||
|
||||
/**
|
||||
* unified way to get RefreshButton
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue