r1615 - branches/bxe_2_0/js
[email protected] Wed, 8 Nov 2006 17:03:16 +0100 (CET)
| Newsgroups | gmane.editors.bitflux.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: chregu
Date: Wed Nov 8 17:03:15 2006
New Revision: 1615
Modified:
branches/bxe_2_0/js/bxeFunctions.js
Log:
track attribute nodes correctly
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 8 17:03:15 2006
@@ -1060,6 +1060,9 @@
while (node) {
//dump(result2.snapshotItem(result2.snapshotLength -1).saveXML() + "\n");
var id = node.getAttribute('__bxe_id');
+ if (node.hasAttribute("__bxe_attribute")) {
+ id += "/"+node.getAttribute('__bxe_attribute');
+ }
if (! _ids[id]) {
nodes.push(node);
_ids[id] = true;
@@ -1245,8 +1248,6 @@
function MouseClickEvent(e) {
e.stopPropagation();
var target = e.currentTarget;
-
-
if(target.userModifiable && bxe_editable_page) {
return bxe_updateXPath(e.currentTarget);
}
@@ -1262,6 +1263,7 @@
bxe_status_bar.buildXPath(e.parentNode);
}
+
else if (cssr) {
/*if ( cssr.top._SourceMode) {
//clear list
@@ -1273,6 +1275,7 @@
if (e) {
bxe_status_bar.buildXPath(e);
} else {
+
bxe_status_bar.buildXPath(sel.anchorNode);
}
@@ -2340,7 +2343,8 @@
var nodes = bxe_getAll_bxeId();
for (var i in nodes) {
var node = nodes[i];
- var _existingNode = bxe_xml_nodes[node.getAttribute("__bxe_id")];
+ var id = node.getAttribute("__bxe_id");
+ var _existingNode = bxe_xml_nodes[id];
if (_existingNode) {
if (node.hasAttribute("__bxe_attribute")) {
node.XMLNode = _existingNode.getAttributeNode(node.getAttribute("__bxe_attribute")).getXMLNode();
@@ -2362,6 +2366,7 @@
_z++;
_child = _child.nextSibling;
}
+
node.addEventListener("click",MouseClickEvent,false);
}
--
Bx-editor-cvs mailing list
[email protected]
http://lists.bitflux.ch/cgi-bin/listinfo/bx-editor-cvs