r1484 - branches/bxe_2_0/js

[email protected]
Newsgroups gmane.editors.bitflux.cvs
Message-ID <[email protected]>
Author: chregu
Date: Thu May 18 18:27:49 2006
New Revision: 1484

Modified:
   branches/bxe_2_0/js/widget.js
Log:
sync context popup and xpath popup


Modified: branches/bxe_2_0/js/widget.js
==============================================================================
--- branches/bxe_2_0/js/widget.js	(original)
+++ branches/bxe_2_0/js/widget.js	Thu May 18 18:27:49 2006
@@ -682,7 +682,7 @@
 Widget_StatusBar.prototype.buildPopup = function (node) {
 		this.Popup.removeAllMenuItems();
 		this.Popup.initTitle(node.XMLNode.vdom.bxeName);
-
+				
 		eDOMEventCall("ContextPopup",node,this.Popup);
 		
 		this.Popup.addSeparator(bxe_i18n.getText(" Append "));
@@ -784,23 +784,25 @@
 		
 		//if (node.isInHTMLDocument && node.isInHTMLDocument() && node._node != cssr.top) {
 			var ele = this.Popup.addMenuItem(node.vdom.bxeName);
+			
+			
 			ele.node.XMLNode = node;
 			ele.node.addEventListener("mouseover",Widget_XPathMouseOver,false);
 			ele.node.addEventListener("mouseout",Widget_XPathMouseOut,false);
 			ele.AppendToNode = node;
 			ele.SubPopup = this.subPopup;
+
 			ele.addMenu(this.subPopup,function(e) {
 				var sub = e.currentTarget.Widget.SubPopup;
 				sub.removeAllMenuItems();
-				sub.setTitle(bxe_i18n.getText("Append"));
 				var newNode = e.currentTarget.Widget.AppendToNode._node;
-				/*if (newNode.XMLNode.vdom.hasAttributes && e.currentTarget.Widget.EditAttribute) {
-						var menui = sub.addMenuItem("Edit Attributes..", sub.EditAttributes.popup);
-						menui.Modal = e.currentTarget.Widget.EditAttributes;
-						menui.MenuPopup._node = newNode;
-				}*/
-				eDOMEventCall("ContextPopup",newNode,sub);
-				sub.appendAllowedSiblings(e.currentTarget.Widget.AppendToNode._node,sub.subPopup);
+				sub.setTitle(bxe_i18n.getText(newNode.XMLNode.vdom.bxeName));
+				
+				eDOMEventCall("ContextPopup",e.currentTarget.Widget.AppendToNode._htmlnode,sub);
+				
+				sub.addSeparator(bxe_i18n.getText(" Append "));
+		
+				sub.appendAllowedSiblings(newNode,sub.subPopup);
 				
 			}
 			);
-- 
Bx-editor-cvs mailing list
[email protected]
http://lists.bitflux.ch/cgi-bin/listinfo/bx-editor-cvs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.