mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
refactor(view) onAfterShow -> addOverLayClick
This commit is contained in:
parent
3a61ef3764
commit
5daffcd1f2
1 changed files with 7 additions and 5 deletions
|
|
@ -18,8 +18,8 @@ var CloudCmd, Util, DOM, CloudFunc, $;
|
|||
beforeShow : function() {
|
||||
Images.hideLoad();
|
||||
Key.unsetBind();
|
||||
addOverLayClick();
|
||||
},
|
||||
afterShow : onAfterShow,
|
||||
beforeClose : Key.setBind,
|
||||
fitToView : true,
|
||||
loop : false,
|
||||
|
|
@ -95,9 +95,11 @@ var CloudCmd, Util, DOM, CloudFunc, $;
|
|||
} else if (isMusic(path))
|
||||
getMusicElement(path, function(element) {
|
||||
$.fancybox.open(element, {
|
||||
beforeShow : musicBeforeShow,
|
||||
afterShow : onAfterShow,
|
||||
beforeClose : Key.setBind,
|
||||
beforeShow : function() {
|
||||
Config.beforeShow();
|
||||
musicBeforeShow();
|
||||
},
|
||||
beforeClose : Config.beforeClose
|
||||
});
|
||||
});
|
||||
else
|
||||
|
|
@ -217,7 +219,7 @@ var CloudCmd, Util, DOM, CloudFunc, $;
|
|||
|
||||
}
|
||||
|
||||
function onAfterShow() {
|
||||
function addOverLayClick() {
|
||||
var NAME = 'fancybox-overlay',
|
||||
overlay = DOM.getByClass(NAME),
|
||||
onOverLayClick = function() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue