fix(view) show if music: add afterShow, beforeClose

This commit is contained in:
coderaiser 2014-04-07 11:27:35 -04:00
parent 598505fa62
commit 4e520d0522

View file

@ -95,7 +95,9 @@ var CloudCmd, Util, DOM, CloudFunc, $;
} else if (isMusic(path))
getMusicElement(path, function(element) {
$.fancybox.open(element, {
beforeShow : musicBeforeShow
beforeShow : musicBeforeShow,
afterShow : onAfterShow,
beforeClose : Key.setBind,
});
});
else
@ -158,6 +160,7 @@ var CloudCmd, Util, DOM, CloudFunc, $;
audioDiv.width(width);
Images.hideLoad();
Key.unsetBind();
}
/**