feature(client) initModules doBefore: add filepicker

This commit is contained in:
coderaiser 2014-03-03 03:27:20 -05:00
parent 5741936d09
commit 9ac020cf01

View file

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