r1516 - branches/bxe_2_0/js

[email protected] Wed, 27 Sep 2006 15:16:05 +0200 (CEST)
Newsgroups gmane.editors.bitflux.cvs
Message-ID <[email protected]>
Author: chregu
Date: Wed Sep 27 15:16:04 2006
New Revision: 1516

Modified:
   branches/bxe_2_0/js/widget.js
Log:
remember cursorposition between clicks
and enable context button for xpathmenu


Modified: branches/bxe_2_0/js/widget.js
==============================================================================
--- branches/bxe_2_0/js/widget.js	(original)
+++ branches/bxe_2_0/js/widget.js	Wed Sep 27 15:16:04 2006
@@ -671,7 +671,16 @@
 		rootNode.Widget = this;
 		rootNode.addEventListener("click", function(e) {
 			this.Widget.buildPopup(this);
+			bxe_cursorPositionLoad();
+			
 		}, false );
+		
+		rootNode.addEventListener("contextmenu", function(e) {
+			this.Widget.buildPopup(this);
+			e.stopPropagation();
+		}, false );
+		
+		
 		rootNode.XMLNode = node;
 		
 		node = node.parentNode;
@@ -1262,6 +1271,7 @@
 	if (_h) {
 		_h.setAttribute("__bxe_highlight","true");
 	}
+	bxe_cursorPositionSave();
 }
 
 
-- 
Bx-editor-cvs mailing list
[email protected]
http://lists.bitflux.ch/cgi-bin/listinfo/bx-editor-cvs