| Newsgroups |
gmane.editors.bitflux.cvs |
| Message-ID |
<[email protected]> |
Author: chregu
Date: Wed May 25 12:08:47 2005
New Revision: 1315
Modified:
branches/bxe_2_0/js/bxeFunctions.js
Log:
only show clean, if parent can have text
Modified: branches/bxe_2_0/js/bxeFunctions.js
==============================================================================
--- branches/bxe_2_0/js/bxeFunctions.js (original)
+++ branches/bxe_2_0/js/bxeFunctions.js Wed May 25 12:08:47 2005
@@ -693,16 +693,18 @@
bxe_Transform(false,false,par);
},"Deletes the Element and all its children");
- popup.addMenuItem("Clean ", function (e) {
- var widget = e.currentTarget.Widget;
- var delNode = widget.MenuPopup.MainNode;
-
- bxe_history_snapshot();
-
- var par = delNode.parentNode;
- delNode._node.removeElementOnly();
- bxe_Transform(false,false,par);
- }, "Removes the Element, but not its children");
+ if (node.parentNode.canHaveText) {
+ popup.addMenuItem("Clean ", function (e) {
+ var widget = e.currentTarget.Widget;
+ var delNode = widget.MenuPopup.MainNode;
+
+ bxe_history_snapshot();
+
+ var par = delNode.parentNode;
+ delNode._node.removeElementOnly();
+ bxe_Transform(false,false,par);
+ }, "Removes the Element, but not its children");
+ }
if (node.previousSibling) {
popup.addMenuItem("Move up", function (e) {
--
Bx-editor-cvs mailing list
[email protected]
http://lists.bitflux.ch/cgi-bin/listinfo/bx-editor-cvs