Author: jmorliaguet
Date: Sat May 27 23:37:35 2006
New Revision: 3256

Modified:
   cpsskins/branches/paris-sprint-2006/ui/screens/common/authoring.js

Log:

- insert the portlet at the right place



Modified: cpsskins/branches/paris-sprint-2006/ui/screens/common/authoring.js
==============================================================================
--- cpsskins/branches/paris-sprint-2006/ui/screens/common/authoring.js  
(original)
+++ cpsskins/branches/paris-sprint-2006/ui/screens/common/authoring.js  Sat May 
27 23:37:35 2006
@@ -15,11 +15,13 @@
 }
 
 function insertPortlet(info) {
-  var url = '@@insertElement'
+  var url = '@@insertElement';
+  var id = info.target.getAttribute('id');
+  var model = CPSSkins.getModelById('m' + id);
   var args = {
-    id: info.target.getAttribute('id'),
+    id: id,
     type_name: info.source.getAttribute('type_name'),
-    order: 0
+    order: model.order
   }
   var options = {
     parameters: $H(args).toQueryString(),
-- 
http://lists.nuxeo.com/mailman/listinfo/z3lab-checkins

Reply via email to