minor changes

This commit is contained in:
coderaiser 2013-02-28 13:59:45 -05:00
parent 34e0a93aaf
commit 294343a3cf
3 changed files with 6 additions and 6 deletions

View file

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

View file

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

View file

@ -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';