mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-24 03:05:41 +00:00
refactor(listeners) dragndrop load: rm isFunc
This commit is contained in:
parent
d262fa4abb
commit
5a45bcf99f
1 changed files with 0 additions and 6 deletions
|
|
@ -308,19 +308,13 @@ var Util, DOM, CloudCmd;
|
|||
dir = Info.dirPath,
|
||||
load = function(file, callback) {
|
||||
var Images = DOM.Images,
|
||||
isFunc = Util.isFunction(file),
|
||||
name = file.name,
|
||||
path = dir + name;
|
||||
|
||||
if (isFunc) {
|
||||
callback = file;
|
||||
Util.exec(callback);
|
||||
} else {
|
||||
Images.showLoad({top: true});
|
||||
Images.setProgress(0, name);
|
||||
|
||||
DOM.RESTful.write(path, file, callback);
|
||||
}
|
||||
};
|
||||
|
||||
preventDefault(event);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue