mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 18:55:26 +00:00
feature(client) initModules doBefore: add filepicker
This commit is contained in:
parent
5741936d09
commit
9ac020cf01
1 changed files with 5 additions and 4 deletions
|
|
@ -203,9 +203,10 @@ var Util, DOM, CloudFunc;
|
|||
showLoad = Images.showLoad.bind(Images),
|
||||
|
||||
doBefore = {
|
||||
'edit' : showLoad,
|
||||
'view' : showLoad,
|
||||
'menu' : showLoad
|
||||
'edit' : showLoad,
|
||||
'view' : showLoad,
|
||||
'menu' : showLoad,
|
||||
'storage/_filepicker' : showLoad
|
||||
},
|
||||
|
||||
load = function(name, path, func) {
|
||||
|
|
@ -234,7 +235,7 @@ var Util, DOM, CloudFunc;
|
|||
name = mod[i],
|
||||
path = STORAGE + '/_' + name.toLowerCase();
|
||||
|
||||
load(name, path);
|
||||
load(name, path, doBefore[path]);
|
||||
}
|
||||
|
||||
Util.exec(callback);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue