Author: jmorliaguet Date: Wed Jan 4 20:21:07 2006 New Revision: 2137 Modified: cpsskins/branches/jmo-perspectives/ui/framework/cpsskins.js Log:
- update the panel just before showing it (this reduces the CPU payload) 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 20:21:07 2006 @@ -358,8 +358,7 @@ this.visible = false; this.fadein = this.view.getAttribute("fadein") || false; this.url = this.view.getAttribute("url"); - - this.update(); + this.rendered = false; }, inspect: function() { @@ -368,7 +367,9 @@ update: function() { var url = this.url; - var options = {}; + var options = { + onComplete: function() { this.rendered = true }.bind(this) + }; if (url) { var parts = url.split('?'); if (parts.length == 2) { @@ -381,6 +382,8 @@ show: function() { if (this.visible) return; + if (!this.rendered) this.update(); + var widget = this.widget; if (this.saved) { widget.innerHTML = this.saved; -- http://lists.nuxeo.com/mailman/listinfo/z3lab-checkins