attempt to migrate to moo 1.2
authorEugene Crosser <crosser@average.org>
Tue, 19 Aug 2008 05:36:47 +0000 (05:36 +0000)
committerEugene Crosser <crosser@average.org>
Tue, 19 Aug 2008 05:36:47 +0000 (05:36 +0000)
include/gallery.js
include/multibox.js
include/overlay.js

index 89be9dffa4efbfc902a64b1e68263a8e7cd4fa18..f85f19a30d9142773fcb4e623e5181d863dad0ae 100644 (file)
@@ -129,7 +129,8 @@ function init_gallery() {
  var iboxparams = {
   useOverlay: true,
   showNumbers: false,
-  openFromLink: false
+  openFromLink: false,
+  descClassName: 'infoboxdesc',
  }
  ibox = new MultiBox('infobox', iboxparams)
 
index a96672d5c58a634d3863fa0031a8c8576659a3e9..fd2803bd4c607ec5951973e495af8f6c9b75d8ea 100644 (file)
@@ -31,8 +31,8 @@ var MultiBox = new Class({
                        offset: {x:0, y:0},\r
                        fixedTop: false,\r
                        path: 'files/',\r
-                       onOpen: Class.empty,\r
-                       onClose: Class.empty,\r
+                       onOpen: $empty,\r
+                       onClose: $empty,\r
                        openFromLink: true,\r
                        relativeToWindow: true\r
                };\r
@@ -119,8 +119,8 @@ var MultiBox = new Class({
                        }\r
                }, this);\r
                \r
-               this.containerEffects = new Fx.Styles(this.container, {duration: 400, transition: Fx.Transitions.sineInOut});\r
-               this.controlEffects = new Fx.Styles(this.controlsContainer, {duration: 300, transition: Fx.Transitions.sineInOut});\r
+               this.containerEffects = new Fx.Morph(this.container, {duration: 400, transition: Fx.Transitions.sineInOut});\r
+               this.controlEffects = new Fx.Morph(this.controlsContainer, {duration: 300, transition: Fx.Transitions.sineInOut});\r
                \r
                this.reset();\r
        },\r
@@ -453,7 +453,7 @@ var MultiBox = new Class({
                        }\r
                }\r
                \r
-               this.contentEffects = new Fx.Styles(this.contentContainer, {duration: 500, transition: Fx.Transitions.linear});\r
+               this.contentEffects = new Fx.Morph(this.contentContainer, {duration: 500, transition: Fx.Transitions.linear});\r
                this.contentEffects.start({\r
                        opacity: 1\r
                });\r
index 432a0763790766ca23f67193b61e1df56024d594..e5d2f3fb3bfa979441131b64136ffef0390b4043 100644 (file)
@@ -65,7 +65,7 @@ var Overlay = new Class({
                        this.options.onClick();\r
                }.bind(this));\r
                \r
-               this.fade = new Fx.Tween(this.container, 'opacity').set(0);\r
+               this.fade = new Fx.Tween(this.container).set('opacity', 0);\r
                this.position();\r
                \r
                window.addEvent('resize', this.position.bind(this));\r