refactor(dom) Images: hideLoad -> hide

This commit is contained in:
coderaiser 2014-04-18 10:48:27 -04:00
parent 2297bb5259
commit 4c3ed845e4
12 changed files with 15 additions and 18 deletions

View file

@ -181,7 +181,7 @@ var CloudCmd, Util, DOM, CloudFunc, $;
error(json.stderr);
}
DOM.Images.hideLoad();
DOM.Images.hide();
}
init();

View file

@ -43,7 +43,7 @@ var CloudCmd, Util, DOM, olark;
function show() {
Key.unsetBind();
Images.hideLoad();
Images.hide();
if (Inited)
olark('api.box.expand');

View file

@ -101,7 +101,7 @@ var CloudCmd, Util, DOM, CloudFunc, Dialog;
/**
* hide load image
*/
this.hideLoad = function() {
this.hide = function() {
DOM.hide(Images.loading());
};

View file

@ -48,7 +48,7 @@ var CloudCmd, Util, DOM;
inner : result
});
Images.hideLoad();
Images.hide();
CloudCmd.View.show(div);

View file

@ -44,7 +44,7 @@ var CloudCmd, Util, DOM, CloudFunc, $;
MenuSeted = true;
}
Images.hideLoad();
Images.hide();
$('li').contextMenu(position || Position);
position = null;
@ -157,10 +157,9 @@ var CloudCmd, Util, DOM, CloudFunc, $;
async : false,
className : 'hidden',
src : lPath,
func : Images.hideLoad
func : Images.hide
});
Images.hideLoad();
setTimeout(function() {
document.body.removeChild(lDownload);
}, TIME);

View file

@ -142,7 +142,7 @@ var Util, DOM, CloudFunc, CloudCmd;
data : data,
error : Images.showError,
success : function(data) {
Images.hideLoad();
Images.hide();
if (!p.doNotLog)
Util.log(data);

View file

@ -30,7 +30,7 @@ var CloudCmd, Util, DOM, CloudFunc, Dropbox, cb, Client;
lLocal = '/node_modules/dropbox/lib/dropbox.js',
lOnload = function(){
console.timeEnd('dropbox load');
DOM.Images.hideLoad();
DOM.Images.hide();
Util.exec(pCallBack);
};
@ -137,7 +137,7 @@ var CloudCmd, Util, DOM, CloudFunc, Dropbox, cb, Client;
lName = Util.getDate();
Client.writeFile(lName, lContent, function(pError, pData){
DOM.Images.hideLoad();
DOM.Images.hide();
Util.log(pError || pData);
Util.exec(pCallBack);
});

View file

@ -56,7 +56,7 @@ var CloudCmd, Util, DOM, filepicker;
filepicker.setKey(key);
DOM.Images.hideLoad();
DOM.Images.hide();
Util.timeEnd('filepicker loaded');
Util.exec(callback);
});

View file

@ -44,7 +44,7 @@ var CloudCmd, Util, DOM, CloudFunc, Github, cb;
DOM.jsload(url, function() {
Util.timeEnd('github');
DOM.Images.hideLoad();
DOM.Images.hide();
Util.exec(callback);
});
@ -154,7 +154,7 @@ var CloudCmd, Util, DOM, CloudFunc, Github, cb;
Util.log(data && data.html_url);
Util.exec(callback);
DOM.Images.hideLoad();
DOM.Images.hide();
});
}

View file

@ -17,7 +17,7 @@ var CloudCmd, Util, DOM, WL;
DOM.jsload(lUrl, function(){
console.timeEnd('SkyDrive load');
DOM.Images.hideLoad();
DOM.Images.hide();
Util.exec(pCallBack);
});

View file

@ -19,7 +19,7 @@ var CloudCmd, Util, DOM, VK;
lOnload = function(){
console.timeEnd('vk load');
DOM.Images.hideLoad();
DOM.Images.hide();
Util.exec(pCallBack);
};

View file

@ -16,7 +16,7 @@ var CloudCmd, Util, DOM, CloudFunc, $;
Element, TemplateAudio,
Config = {
beforeShow : function() {
Images.hideLoad();
Images.hide();
Key.unsetBind();
addOverLayClick();
},
@ -181,7 +181,6 @@ var CloudCmd, Util, DOM, CloudFunc, $;
audioDiv.width(width);
Images.hideLoad();
Key.unsetBind();
}
@ -202,7 +201,6 @@ var CloudCmd, Util, DOM, CloudFunc, $;
Util.timeEnd(Name + ' load');
Loading = false;
Util.exec(callback);
Images.hideLoad();
})
.cssSet({id:'view-css',
inner : '#view {' +