From: Eugene Crosser Date: Tue, 19 Aug 2008 05:36:47 +0000 (+0000) Subject: attempt to migrate to moo 1.2 X-Git-Tag: 2.00~53 X-Git-Url: http://www.average.org/gitweb/?p=mkgallery.git;a=commitdiff_plain;h=938141692ce114b47e3268df7a2bb115e40e8e0d attempt to migrate to moo 1.2 --- diff --git a/include/gallery.js b/include/gallery.js index 89be9df..f85f19a 100644 --- a/include/gallery.js +++ b/include/gallery.js @@ -129,7 +129,8 @@ function init_gallery() { var iboxparams = { useOverlay: true, showNumbers: false, - openFromLink: false + openFromLink: false, + descClassName: 'infoboxdesc', } ibox = new MultiBox('infobox', iboxparams) 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 }); diff --git a/include/overlay.js b/include/overlay.js index 432a076..e5d2f3f 100644 --- a/include/overlay.js +++ b/include/overlay.js @@ -65,7 +65,7 @@ var Overlay = new Class({ this.options.onClick(); }.bind(this)); - this.fade = new Fx.Tween(this.container, 'opacity').set(0); + this.fade = new Fx.Tween(this.container).set('opacity', 0); this.position(); window.addEvent('resize', this.position.bind(this));