Author: jmorliaguet
Date: Thu Jun 15 00:47:34 2006
New Revision: 3411

Modified:
   cpsskins/branches/paris-sprint-2006/ui/screens/common/authoring.js
   
cpsskins/branches/paris-sprint-2006/ui/screens/pagedesigner/layout/layout_mode.css

Log:

- fixed duplicate / delete actions: we get the element's id from the model

- using ++resource++



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  Thu Jun 
15 00:47:34 2006
@@ -59,8 +59,9 @@
 
 function duplicateElement(info) {
   var url = '@@duplicateElement';
+  var data = info.model.getData();
   var args = {
-    id: info.target.getAttribute('id')
+    id: data.id
   }
   var options = {
     parameters: $H(args).toQueryString(),
@@ -71,8 +72,9 @@
 
 function deleteElement(info) {
   var url = '@@deleteElement'
+  var data = info.model.getData();
   var args = {
-    id: info.target.getAttribute('id')
+    id: data.id
   }
   var options = {
     parameters: $H(args).toQueryString(),

Modified: 
cpsskins/branches/paris-sprint-2006/ui/screens/pagedesigner/layout/layout_mode.css
==============================================================================
--- 
cpsskins/branches/paris-sprint-2006/ui/screens/pagedesigner/layout/layout_mode.css
  (original)
+++ 
cpsskins/branches/paris-sprint-2006/ui/screens/pagedesigner/layout/layout_mode.css
  Thu Jun 15 00:47:34 2006
@@ -79,7 +79,7 @@
 .sizer .right {
   float: right;
   margin-right: 1px;
-  background: url(/++skin++cpsskins/@@/sizer_right.png); 
+  background: url(++resource++sizer_right.png); 
   background-repeat: no-repeat; 
   height: 10px;
   width: 7px;
@@ -99,7 +99,7 @@
   border-style: solid !important;
   border-color: #bbb #666 #666 #bbb !important;
   text-align: center;
-  background-image: url(/++skin++cpsskins/@@/bg_cellgrip.png);
+  background-image: url(++resource++bg_cellgrip.png);
   padding: 0 !important;
   margin: 5px 0 5px 0 !important;
 }
-- 
http://lists.nuxeo.com/mailman/listinfo/z3lab-checkins

Reply via email to