Author: jmorliaguet Date: Mon Mar 6 10:18:48 2006 New Revision: 2541 Modified: cpsskins/branches/jmo-perspectives/ui/framework/cpsskins.js Log:
- fix: when a template is inside a panel visible in a given perspective the template must be reloaded when switching perspectives. 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 Mon Mar 6 10:18:48 2006 @@ -1441,6 +1441,13 @@ } }, + reload: function() { + var data = this.getData(); + if (data) { + this.display(data); + } + }, + display: function(data) { this.render(data); if (this.def.render_effect) { @@ -1570,7 +1577,7 @@ CPSSkins.registerEventHandler("loaded template", view, function(event) { var view = event.subscriber; - view.getData(); + view.reload(); CPSSkins.unsubscribe("loaded template", {'scope': view.hash()}); }); -- http://lists.nuxeo.com/mailman/listinfo/z3lab-checkins