mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
fixed upload function of filepicker
This commit is contained in:
parent
80b5db2d0b
commit
1372965423
2 changed files with 5 additions and 7 deletions
|
|
@ -64,6 +64,8 @@ getJSONfromFileTable.
|
|||
|
||||
* Added ability to set attributes in Loader.anyload.
|
||||
|
||||
* Fixed upload function of filepicker.
|
||||
|
||||
|
||||
2012.04.22, v0.2.0
|
||||
|
||||
|
|
|
|||
|
|
@ -16,14 +16,10 @@ var CloudCmd, Util, DOM, $, filepicker;
|
|||
var lContent = pParams.data,
|
||||
lName = pParams.name;
|
||||
|
||||
filepicker.store(lContent, {filename: lName}, function(new_fpfile){
|
||||
console.log(new_fpfile);
|
||||
});
|
||||
|
||||
filepicker.pick(function(FPFile){
|
||||
console.log(FPFile.url);
|
||||
filepicker.store(lContent, {filename: lName}, function(pFPFile){
|
||||
console.log(pFPFile);
|
||||
|
||||
Util.exec(pCallBack);
|
||||
filepicker.exportFile(pFPFile, Util.log, Util.log);
|
||||
});
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue