Author: jmorliaguet
Date: Sat Mar 25 14:25:42 2006
New Revision: 2722

Modified:
   cpsskins/branches/jmo-perspectives/ui/authoring/authoring.js
   cpsskins/branches/jmo-perspectives/ui/framework/cpsskins.js
   cpsskins/branches/jmo-perspectives/ui/screens/contentauthor/filters/slot.pt
   cpsskins/branches/jmo-perspectives/ui/screens/pagedesigner/filters/cell.pt
Log:

- activated the portlet creation in other screens.



Modified: cpsskins/branches/jmo-perspectives/ui/authoring/authoring.js
==============================================================================
--- cpsskins/branches/jmo-perspectives/ui/authoring/authoring.js        
(original)
+++ cpsskins/branches/jmo-perspectives/ui/authoring/authoring.js        Sat Mar 
25 14:25:42 2006
@@ -10,7 +10,8 @@
   var options = {
     'parameters': $H(args).toQueryString(),
     'onComplete': function(req) {
-      CPSSkins.getViewById('layout-designer').refresh();
+      var controller = info.context;
+      controller.refreshViews();
     }
   };
   new Ajax.Request(url, options);

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 Sat Mar 25 
14:25:42 2006
@@ -442,6 +442,12 @@
     return this.def.id;
   },
 
+  refreshViews: function() {
+    this.views.entries().each(function(v) {
+      CPSSkins.getViewById(v).refresh();
+    });
+  },
+
   setup: function() {
     /* to override */
   },
@@ -889,8 +895,11 @@
       var action_id = this.def.dropping.action;
       if (action_id) {
         var action_handler = CPSSkins.getAction(action_id);
-        if (action_handler) action_handler(
-          {'source': this.dragged, 'target': this.target}
+        if (action_handler) action_handler({
+          'source': this.dragged,
+          'target': this.target,
+          'context': this
+          }
         );
       }
     }

Modified: 
cpsskins/branches/jmo-perspectives/ui/screens/contentauthor/filters/slot.pt
==============================================================================
--- cpsskins/branches/jmo-perspectives/ui/screens/contentauthor/filters/slot.pt 
(original)
+++ cpsskins/branches/jmo-perspectives/ui/screens/contentauthor/filters/slot.pt 
Sat Mar 25 14:25:42 2006
@@ -5,8 +5,8 @@
   id context/identifier;
   icon context/@@getIcon">
 
-  <div class="slotFrame container" render="1"
-       tal:attributes="id id">
+  <div class="slotFrame container portletTarget" render="1"
+       tal:attributes="id id; targetid id">
     <div class="title" tal:content="slot_title|slot_name" />
     <div class="body" tal:condition="markup"
          tal:content="structure markup" />

Modified: 
cpsskins/branches/jmo-perspectives/ui/screens/pagedesigner/filters/cell.pt
==============================================================================
--- cpsskins/branches/jmo-perspectives/ui/screens/pagedesigner/filters/cell.pt  
(original)
+++ cpsskins/branches/jmo-perspectives/ui/screens/pagedesigner/filters/cell.pt  
Sat Mar 25 14:25:42 2006
@@ -17,7 +17,8 @@
     id id;
     width width;">
 
-  <div class="container" focus="1"
+  <div class="container portletTarget" focus="1"
+       tal:attributes="targetid id"
        tal:content="structure options/markup" />
 
 </td>
-- 
http://lists.nuxeo.com/mailman/listinfo/z3lab-checkins

Reply via email to