[Zope-CVS] CVS: Products/CompositePage/common - edit.js:1.10
Godefroid Chapelle
gotcha at swing.be
Thu May 6 10:18:53 EDT 2004
Update of /cvs-repository/Products/CompositePage/common
In directory cvs.zope.org:/tmp/cvs-serv14740
Modified Files:
edit.js
Log Message:
IE were two icons per element
=== Products/CompositePage/common/edit.js 1.9 => 1.10 ===
--- Products/CompositePage/common/edit.js:1.9 Wed Mar 3 11:06:21 2004
+++ Products/CompositePage/common/edit.js Thu May 6 10:18:52 2004
@@ -144,8 +144,12 @@
elem = elem.cloneNode(true);
if (icon)
elem.src = icon;
- node.insertBefore(elem, node.childNodes[0]);
- elem.style.display = 'inline';
+ var iconShowed = node.getAttribute('iconShowed');
+ if (!iconShowed) {
+ node.insertBefore(elem, node.childNodes[0]);
+ elem.style.display = 'inline';
+ node.setAttribute('iconShowed', '1');
+ }
}
pd_setupDragUI(node, composite_move, composite_checkmove);
pd_setupContextMenu(node, 'slot-element-context-menu', null, true);
More information about the Zope-CVS
mailing list