Author: jmorliaguet
Date: Wed Jan  4 19:53:56 2006
New Revision: 2136

Modified:
   cpsskins/branches/jmo-perspectives/ui/framework/cpsskins.js
Log:

- panels do not fade in by default



Modified: cpsskins/branches/jmo-perspectives/ui/framework/cpsskins.js
==============================================================================
--- cpsskins/branches/jmo-perspectives/ui/framework/cpsskins.js (original)
+++ cpsskins/branches/jmo-perspectives/ui/framework/cpsskins.js Wed Jan  4 
19:53:56 2006
@@ -356,6 +356,7 @@
     this.view = view;
     this.saved = null;
     this.visible = false;
+    this.fadein = this.view.getAttribute("fadein") || false;
     this.url = this.view.getAttribute("url");
 
     this.update();
@@ -384,14 +385,18 @@
     if (this.saved) {
       widget.innerHTML = this.saved;
     }
-    new CPSSkins.Scheduler(widget, {
-      action: function(value) {
-        Canvas.setOpacity(widget, value);
-        },
-      onComplete: function() {
-        Element.show(widget);
-      }
-    });
+    if (this.fadein) {
+      new CPSSkins.Scheduler(widget, {
+        action: function(value) {
+          Canvas.setOpacity(widget, value);
+          },
+        onComplete: function() {
+          Element.show(widget);
+        }
+      });
+    } else {
+      Element.show(widget);
+    }
     this.visible = true;
   },
 
-- 
http://lists.nuxeo.com/mailman/listinfo/z3lab-checkins

Reply via email to