mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-18 17:05:17 +00:00
feature(menu, dom) add zipFile
This commit is contained in:
parent
b02e35ed97
commit
ea5d2a2b4d
2 changed files with 15 additions and 1 deletions
|
|
@ -1048,6 +1048,19 @@ var CloudCmd, Util, DOM, CloudFunc;
|
|||
RESTfull.save(lDir + lName + lType, null, CloudCmd.refresh);
|
||||
};
|
||||
|
||||
/**
|
||||
* zip file
|
||||
*
|
||||
*/
|
||||
this.zipFile = function(){
|
||||
var lName = Cmd.getCurrentName(),
|
||||
lDir = Cmd.getCurrentDirPath(),
|
||||
lQuery = '?zip';
|
||||
|
||||
if (lName && lName !== '..')
|
||||
RESTfull.save(lDir + lName, null, CloudCmd.refresh, lQuery);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* delete currentfile, prompt before it
|
||||
|
|
|
|||
|
|
@ -173,7 +173,8 @@ var CloudCmd, Util, DOM, CloudFunc, $;
|
|||
'Rename' : function(){
|
||||
setTimeout( Util.retExec(DOM.renameCurrent), 100);
|
||||
},
|
||||
'Delete' : Util.retExec(DOM.promptDeleteSelected)
|
||||
'Delete' : Util.retExec(DOM.promptDeleteSelected),
|
||||
'Zip file' : DOM.zipFile
|
||||
};
|
||||
|
||||
if (UploadToItemNames.length)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue