diff --git a/lib/client/view.js b/lib/client/view.js index 3d5dde32..13e9cb45 100644 --- a/lib/client/view.js +++ b/lib/client/view.js @@ -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(); } /**