mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
feature(client) rm Util.log
This commit is contained in:
parent
5922b91824
commit
f803a76bfa
1 changed files with 9 additions and 3 deletions
|
|
@ -7,6 +7,12 @@ var Util, DOM, CloudFunc, join;
|
|||
|
||||
function CloudCmdProto(Util, DOM, CloudFunc) {
|
||||
var Key,
|
||||
log = function() {
|
||||
DOM.Files.get('config', function(error, config) {
|
||||
if (!error && config.debug)
|
||||
console.log.apply(console, arguments);
|
||||
});
|
||||
},
|
||||
Listeners,
|
||||
Files = DOM.Files,
|
||||
Images = DOM.Images,
|
||||
|
|
@ -173,7 +179,7 @@ var Util, DOM, CloudFunc, join;
|
|||
|
||||
if (file && !current) {
|
||||
msg = CloudFunc.formatMsg('set current file', file, 'error');
|
||||
Util.log(msg);
|
||||
log(msg);
|
||||
} else {
|
||||
DOM.setCurrentFile(current);
|
||||
CloudCmd.execFromModule(module, 'show');
|
||||
|
|
@ -341,13 +347,13 @@ var Util, DOM, CloudFunc, join;
|
|||
if (!options)
|
||||
options = {};
|
||||
|
||||
Util.log ('reading dir: "' + path + '";');
|
||||
log('reading dir: "' + path + '";');
|
||||
|
||||
Files.get('config', function(error, config) {
|
||||
var dirStorage;
|
||||
|
||||
if (error)
|
||||
Util.log(error);
|
||||
alert(error);
|
||||
else
|
||||
dirStorage = config.dirStorage;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue