refactor(dom) zipFile

This commit is contained in:
coderaiser 2014-03-25 03:40:46 -04:00
parent f5d9360793
commit 83aa10660c

View file

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