mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-08-04 05:33:10 +00:00
feature(json) rm ext, edit
This commit is contained in:
parent
e03ac50239
commit
b6d1c7dcd1
4 changed files with 1 additions and 201 deletions
|
|
@ -1711,22 +1711,6 @@ var CloudCmd, Util, DOM, CloudFunc, Dialog;
|
|||
return ret;
|
||||
};
|
||||
|
||||
this.getType = function(name, callback) {
|
||||
DOM.Files.get('ext', function(error, extensions) {
|
||||
var index,
|
||||
ext = Util.getExt(name);
|
||||
|
||||
ext = extensions[ext];
|
||||
|
||||
if (ext) {
|
||||
index = ext.indexOf('/') + 1;
|
||||
ext = ext.substr(index);
|
||||
}
|
||||
|
||||
Util.exec(callback, ext);
|
||||
});
|
||||
};
|
||||
|
||||
this.changePanel = function() {
|
||||
var id, files, name,
|
||||
Info = CurrentInfo,
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@
|
|||
var Promises = {},
|
||||
Storage = DOM.Storage,
|
||||
Files = this,
|
||||
FILES_JSON = 'config|modules|ext|edit|menu',
|
||||
FILES_JSON = 'config|modules',
|
||||
FILES_HTML = 'file|path|link|pathLink|media',
|
||||
FILES_HTML_ROOT = 'view/media-tmpl|config-tmpl|upload',
|
||||
funcs = [],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue