[Zope-CVS] CVS: Products/CompositePage/common - pdlib.js:1.4.2.1

Shane Hathaway shane at zope.com
Wed Feb 25 16:15:34 EST 2004


Update of /cvs-repository/Products/CompositePage/common
In directory cvs.zope.org:/tmp/cvs-serv5497/common

Modified Files:
      Tag: composite-flat-ui-branch
	pdlib.js 
Log Message:
Wired the add, remove, copy, cut, and paste functions.

Also added an icon for each element.


=== Products/CompositePage/common/pdlib.js 1.4 => 1.4.2.1 ===
--- Products/CompositePage/common/pdlib.js:1.4	Sat Dec 27 13:40:20 2003
+++ Products/CompositePage/common/pdlib.js	Wed Feb 25 16:15:02 2004
@@ -387,6 +387,14 @@
 function pd_itemOnMousedown(mo, e, move_func, checkmove_func, box) {
   if (!e)
     e = event;
+  var target = e.target || e.srcElement;
+  if (target.nodeName) {
+    var name = target.nodeName.toLowerCase();
+    if (name == "input" || name == "select" || name == "a") {
+      // Allow interaction with the widget or link.
+      return true;
+    }
+  }
   if (e.button == 0 || e.button == 1) {
     pd_hideContextMenu();
     if (!box)




More information about the Zope-CVS mailing list