Author: jmorliaguet Date: Fri Mar 10 23:33:45 2006 New Revision: 2575 Modified: cpsskins/branches/jmo-perspectives/ui/framework/cpsskins.js Log:
- register controllers again when a widget template is (re)loaded (this will be refactored to be more generic) 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 Fri Mar 10 23:33:45 2006 @@ -1663,6 +1663,11 @@ CPSSkins.registerEventHandler("loaded template", view, function(event) { var view = event.subscriber; view.reload(); + var controllers_id = view.getControllers(); + controllers_id.each(function(c) { + var controller = CPSSkins.getControllerById(c); + if (controller) { controller.register(view); } + }); CPSSkins.unsubscribe("loaded template", {'scope': view.hash()}); }); -- http://lists.nuxeo.com/mailman/listinfo/z3lab-checkins