mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
refactor(dom) zipFile
This commit is contained in:
parent
f5d9360793
commit
83aa10660c
1 changed files with 8 additions and 8 deletions
|
|
@ -590,16 +590,16 @@ var CloudCmd, Util, DOM, CloudFunc, Dialog;
|
|||
*
|
||||
*/
|
||||
this.zipFile = function() {
|
||||
var RESTful = DOM.RESTful,
|
||||
lName = Cmd.getCurrentName(),
|
||||
lDir = Cmd.getCurrentDirPath(),
|
||||
lPath = lDir + lName,
|
||||
lFiles = {
|
||||
from : lPath
|
||||
var RESTful = DOM.RESTful,
|
||||
name = Cmd.getCurrentName(),
|
||||
dir = Cmd.getCurrentDirPath(),
|
||||
path = dir + name,
|
||||
fileFrom = {
|
||||
from : path
|
||||
};
|
||||
|
||||
if (lName && lName !== '..')
|
||||
RESTful.zip(lFiles, CloudCmd.refresh);
|
||||
if (name && name !== '..')
|
||||
RESTful.zip(fileFrom, CloudCmd.refresh);
|
||||
};
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue