X-Git-Url: http://www.average.org/gitweb/?p=mkgallery.git;a=blobdiff_plain;f=include%2Fmultibox.js;h=fd2803bd4c607ec5951973e495af8f6c9b75d8ea;hp=a96672d5c58a634d3863fa0031a8c8576659a3e9;hb=938141692ce114b47e3268df7a2bb115e40e8e0d;hpb=e04e3b035dbc99e57bd2b37fb68696718a825297;ds=sidebyside diff --git a/include/multibox.js b/include/multibox.js index a96672d..fd2803b 100644 --- a/include/multibox.js +++ b/include/multibox.js @@ -31,8 +31,8 @@ var MultiBox = new Class({ offset: {x:0, y:0}, fixedTop: false, path: 'files/', - onOpen: Class.empty, - onClose: Class.empty, + onOpen: $empty, + onClose: $empty, openFromLink: true, relativeToWindow: true }; @@ -119,8 +119,8 @@ var MultiBox = new Class({ } }, this); - this.containerEffects = new Fx.Styles(this.container, {duration: 400, transition: Fx.Transitions.sineInOut}); - this.controlEffects = new Fx.Styles(this.controlsContainer, {duration: 300, transition: Fx.Transitions.sineInOut}); + this.containerEffects = new Fx.Morph(this.container, {duration: 400, transition: Fx.Transitions.sineInOut}); + this.controlEffects = new Fx.Morph(this.controlsContainer, {duration: 300, transition: Fx.Transitions.sineInOut}); this.reset(); }, @@ -453,7 +453,7 @@ var MultiBox = new Class({ } } - this.contentEffects = new Fx.Styles(this.contentContainer, {duration: 500, transition: Fx.Transitions.linear}); + this.contentEffects = new Fx.Morph(this.contentContainer, {duration: 500, transition: Fx.Transitions.linear}); this.contentEffects.start({ opacity: 1 });