Author: jmorliaguet
Date: Sat Dec 17 16:24:18 2005
New Revision: 2049

Modified:
   cpsskins/branches/jmo-perspectives/ui/authoring/authoring.css
   cpsskins/branches/jmo-perspectives/ui/authoring/authoring.js
   cpsskins/branches/jmo-perspectives/ui/framework/utils.js
Log:

- using Element.show() and Element.hide() to control
  tooltip visibility



Modified: cpsskins/branches/jmo-perspectives/ui/authoring/authoring.css
==============================================================================
--- cpsskins/branches/jmo-perspectives/ui/authoring/authoring.css       
(original)
+++ cpsskins/branches/jmo-perspectives/ui/authoring/authoring.css       Sat Dec 
17 16:24:18 2005
@@ -358,8 +358,6 @@
 }
 
 #tooltip-box {
-  display: none;
-  visibility: hidden;
   position: absolute;
   top: 100px;
   border-style: solid;

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 Dec 
17 16:24:18 2005
@@ -489,13 +489,13 @@
     setTimeout("showTooltip()", 1000);
     }
   mo.onmouseout = function(e) {
-    hideElement('tooltip-box');
+    Element.hide('tooltip-box');
     tooltip_active = false;
     }
 }
 
 function showTooltip() {
-  if (tooltip_active) showElement('tooltip-box');
+  if (tooltip_active) Element.show('tooltip-box');
 }
 
 function setupContextMenu(mo) {
@@ -532,6 +532,7 @@
     context_menu = $("choice-context-menu");
     selection_box = $("selection-box");
     tooltip_box = $("tooltip-box");
+    Element.hide('tooltip-box')
 
     menu_actions = new MenuActions();
 

Modified: cpsskins/branches/jmo-perspectives/ui/framework/utils.js
==============================================================================
--- cpsskins/branches/jmo-perspectives/ui/framework/utils.js    (original)
+++ cpsskins/branches/jmo-perspectives/ui/framework/utils.js    Sat Dec 17 
16:24:18 2005
@@ -13,31 +13,6 @@
   return false;
 }
 
-/* Visibility (tooltip, ...) */
-function toggleElement(id) {
-  var node = $(id);
-  if (!node) return;
-  if (node.style.display != 'none') {
-    hideElement(id);
-  } else {
-    showElement(id);
-  }
-}
-
-function showElement(id) {
-  var node = $(id);
-  if (!node) return;
-  node.style.visibility = 'visible';
-  node.style.display = 'block';
-}
-
-function hideElement(id) {
-  var node = $(id);
-  if (!node) return;
-  node.style.visibility = 'hidden';
-  node.style.display = 'none';
-}
-
 /* JSON-RPC */
 
 // Open a connection with a JSON-RPC server
-- 
http://lists.nuxeo.com/mailman/listinfo/z3lab-checkins

Reply via email to