Author: jmorliaguet
Date: Sun Oct 23 20:06:26 2005
New Revision: 28556

Modified:
   z3lab/cpsskins/branches/jmo-perspectives/browser/authoring/authoring.css
   z3lab/cpsskins/branches/jmo-perspectives/browser/authoring/authoring.js
Log:

- UI / cosmetic



Modified: 
z3lab/cpsskins/branches/jmo-perspectives/browser/authoring/authoring.css
==============================================================================
--- z3lab/cpsskins/branches/jmo-perspectives/browser/authoring/authoring.css    
(original)
+++ z3lab/cpsskins/branches/jmo-perspectives/browser/authoring/authoring.css    
Sun Oct 23 20:06:26 2005
@@ -345,7 +345,7 @@
 #selection-box {
   position: absolute;
   background-color: expression('#ff0');
-  border: 1px solid #fc0;
+  border: 1px dashed #999;
   filter: alpha(opacity=50);
   background-image: url(/++skin++cpsskins/@@/bg_alpha50.png);
   display: none;

Modified: 
z3lab/cpsskins/branches/jmo-perspectives/browser/authoring/authoring.js
==============================================================================
--- z3lab/cpsskins/branches/jmo-perspectives/browser/authoring/authoring.js     
(original)
+++ z3lab/cpsskins/branches/jmo-perspectives/browser/authoring/authoring.js     
Sun Oct 23 20:06:26 2005
@@ -120,8 +120,8 @@
   node.style.position = "relative";
   selection_box.style.top = '' + (node.offsetTop) + 'px';
   selection_box.style.left = '' + (node.offsetLeft) + 'px';
-  selection_box.style.width = '' + (node.offsetWidth) + 'px';
-  selection_box.style.height = '' + (node.offsetHeight) + 'px';
+  selection_box.style.width = '' + (node.offsetWidth -2) + 'px';
+  selection_box.style.height = '' + (node.offsetHeight -2) + 'px';
   node.style.position = "static";
   selection_box.style.visibility = "visible";
   selection_box.style.display = "block";
@@ -137,8 +137,9 @@
 function focus(node) {
   if (!node.getAttribute("focus")) return;
   if (node.innerHTML) return;
+  setCursor("default");
   node.bg = node.style.background;
-  node.style.backgroundColor = '#f9f6f6';
+  node.style.backgroundColor = '#ff3';
 }
 
 function defocus(node) {
@@ -404,9 +405,9 @@
 function setupDraggable(mo) {
   pd_setupDragUI(mo);
   mo.onmousedown = function(e) {
-    setCursor("default");
     moved = new Element(mo);
     set_dragbox_content(mo);
+    setCursor("default");
     pd_itemOnMousedown(mo, e);
   };
   mo.onmousemove = function(e) {
@@ -414,6 +415,7 @@
   }
   mo.onmouseover = function(e) {
     if (!moved) return;
+    setCursor("pointer");
     set_dragbox_dimensions(mo);
   }
   mo.onmouseup = function(e) {
@@ -426,6 +428,9 @@
     save_move(current_elem);
     moved = null;
   }
+  mo.onmouseout = function(e) {
+    setCursor("default");
+  }
 }
 
 function setupShiftable(mo) {
@@ -494,7 +499,6 @@
   }
 }
 
-
 function setupEditable(mo) {
   mo.onmousedown = function(e) {
     var target = getEventTarget(e);
-- 
http://lists.nuxeo.com/mailman/listinfo/z3lab-checkins

Reply via email to