mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 18:55:26 +00:00
minor changes
This commit is contained in:
parent
34e0a93aaf
commit
294343a3cf
3 changed files with 6 additions and 6 deletions
|
|
@ -265,7 +265,7 @@
|
|||
main.commander.getDirContent(p.name, function(pError, pJSON){
|
||||
if(!pError){
|
||||
var lQuery = main.getQuery(p.request);
|
||||
if(lQuery === 'json'){
|
||||
if( Util.isContainStr(lQuery, 'json') ){
|
||||
p.data = Util.stringifyJSON(pJSON);
|
||||
p.name +='.json';
|
||||
main.sendResponse(p);
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
/* object contains jQuery-contextMenu
|
||||
* https://github.com/medialize/jQuery-contextMenu
|
||||
*/
|
||||
var CloudCommander, Util, DOM, $;
|
||||
(function(CloudCmd, Util, DOM){
|
||||
var CloudCommander, Util, DOM, CloudFunc, $;
|
||||
(function(CloudCmd, Util, DOM, CloudFunc){
|
||||
'use strict';
|
||||
|
||||
var KeyBinding = CloudCmd.KeyBinding,
|
||||
|
|
@ -129,7 +129,7 @@ var CloudCommander, Util, DOM, $;
|
|||
|
||||
Util.log('downloading file ' + lPath +'...');
|
||||
|
||||
lPath = lPath + '?download';
|
||||
lPath = CloudFunc.FS + lPath + '?download';
|
||||
|
||||
if(!DOM.getById(lId)){
|
||||
var lDownload = DOM.anyload({
|
||||
|
|
@ -304,4 +304,4 @@ var CloudCommander, Util, DOM, $;
|
|||
};
|
||||
|
||||
CloudCmd.Menu = Menu;
|
||||
})(CloudCommander, Util, DOM);
|
||||
})(CloudCommander, Util, DOM, CloudFunc);
|
||||
|
|
@ -176,7 +176,7 @@
|
|||
if( !Util.isContainStr(lType, 'img') )
|
||||
lContentEncoding = '; charset=UTF-8';
|
||||
|
||||
if( Util.strCmp(p.query, 'download') )
|
||||
if( Util.isContainStr(p.query, 'download') )
|
||||
lType = 'application/octet-stream';
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue