r1774 - in branches/bxe_2_0: js mozile

[email protected] Wed, 7 Nov 2007 17:50:03 +0100 (CET)
Newsgroups gmane.editors.bitflux.cvs
Message-ID <[email protected]>
Author: chregu
Date: Wed Nov  7 17:50:03 2007
New Revision: 1774

Log:
fix     BXEB-55 and BXEB-54


Modified:
   branches/bxe_2_0/js/bxeFunctions.js
   branches/bxe_2_0/mozile/mozCE.js

Modified: branches/bxe_2_0/js/bxeFunctions.js
==============================================================================
--- branches/bxe_2_0/js/bxeFunctions.js	(original)
+++ branches/bxe_2_0/js/bxeFunctions.js	Wed Nov  7 17:50:03 2007
@@ -694,6 +694,7 @@
 		var menui = popup.addMenuItem(bxe_i18n.getText("Edit text in popup"), function (e) {
 			var mod = mozilla.getWidgetModalBox("Edit text here", function(values) {
 				menui.MenuPopup.MainNode._node.firstChild.nodeValue = values.text;
+				bxe_checkEmptyParent(menui.MenuPopup.MainNode);
 				bxe_Transform();
 			});
 			var inputfield = mod.addItem("text", "", "textarea");
@@ -2845,6 +2846,8 @@
 	}*/
 }
 
+
+
 function bxe_checkEmptyParent(par) {
 	par._node.betterNormalize();
 	if (par._node.childNodes.length == 0) {

Modified: branches/bxe_2_0/mozile/mozCE.js
==============================================================================
--- branches/bxe_2_0/mozile/mozCE.js	(original)
+++ branches/bxe_2_0/mozile/mozCE.js	Wed Nov  7 17:50:03 2007
@@ -893,8 +893,13 @@
 	var node = window.getSelection().anchorNode;
 	if( node && node.nodeType == 3) {
 		node.XMLNode._node.normalize();
+		bxe_checkEmptyParent(node.parentNode.XMLNode);
+	} else {
+		bxe_checkEmptyParent(node.XMLNode);
+		
 	}
 	
+	
 	bxe_history_snapshot_async();
 	if (node && node.XMLNode) {
 		bxe_Transform(false,false,node.XMLNode.parentNode);
-- 
Bx-editor-cvs mailing list
[email protected]
http://lists.bitflux.ch/cgi-bin/listinfo/bx-editor-cvs