r1718 - branches/bxe_2_0/js
[email protected] Mon, 13 Aug 2007 10:23:47 +0200 (CEST)
| Newsgroups | gmane.editors.bitflux.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: chregu
Date: Mon Aug 13 10:23:47 2007
New Revision: 1718
Log:
WS only
Modified:
branches/bxe_2_0/js/bxeXMLNode.js
Modified: branches/bxe_2_0/js/bxeXMLNode.js
==============================================================================
--- branches/bxe_2_0/js/bxeXMLNode.js (original)
+++ branches/bxe_2_0/js/bxeXMLNode.js Mon Aug 13 10:23:47 2007
@@ -344,8 +344,8 @@
var ret = false;
var cHT = this.canHaveText;
if (!noPlaceholderText) {
-
- if (cHT ) {
+
+ if (cHT ) {
if (this.vdom && this.vdom.bxeDefaultcontent) {
if (this.vdom.bxeDefaultcontentType == "function") {
@@ -358,39 +358,39 @@
this.setContent("#" + this.localName );
this._node.setAttribute("__bxe_defaultcontent","true");
}
-
-
-
- } else {
- if (this.vdom && this.vdom.bxeDefaultcontent && this.vdom.bxeDefaultcontentType == "element") {
- eDOMEventCall("appendChildNode",document,{"noTransform": true, "appendToNode": this, "localName":this.vdom.bxeDefaultcontent,"namespaceURI":this.vdom.bxeDefaultcontentNamespaceUri});
- ret = this;
+
+
+
} else {
- var ac = this.allowedChildren;
- if (ac.length == 1) {
- eDOMEventCall("appendChildNode",document,{"noTransform": true, "appendToNode": this, "localName":ac[0].localName,"namespaceURI":ac[0].namespaceURI});
+ if (this.vdom && this.vdom.bxeDefaultcontent && this.vdom.bxeDefaultcontentType == "element") {
+ eDOMEventCall("appendChildNode",document,{"noTransform": true, "appendToNode": this, "localName":this.vdom.bxeDefaultcontent,"namespaceURI":this.vdom.bxeDefaultcontentNamespaceUri});
ret = this;
- } else if (ac.length > 1) {
- var _hasMust = false;
- for ( var i in ac) {
- if (!(ac[i].optional ) ) {
- eDOMEventCall("appendChildNode",document,{"noTransform": true, "appendToNode": this, "localName":ac[i].localName,"namespaceURI":ac[i].namespaceURI});
- _hasMust =true;
- }
-
- }
- if (!_hasMust) {
- bxe_context_menu.buildElementChooserPopup(this,ac);
-
- } else {
+ } else {
+ var ac = this.allowedChildren;
+ if (ac.length == 1) {
+ eDOMEventCall("appendChildNode",document,{"noTransform": true, "appendToNode": this, "localName":ac[0].localName,"namespaceURI":ac[0].namespaceURI});
ret = this;
-
+ } else if (ac.length > 1) {
+ var _hasMust = false;
+ for ( var i in ac) {
+ if (!(ac[i].optional ) ) {
+ eDOMEventCall("appendChildNode",document,{"noTransform": true, "appendToNode": this, "localName":ac[i].localName,"namespaceURI":ac[i].namespaceURI});
+ _hasMust =true;
+ }
+
+ }
+ if (!_hasMust) {
+ bxe_context_menu.buildElementChooserPopup(this,ac);
+
+ } else {
+ ret = this;
+
+ }
}
}
+
+
}
-
-
- }
}
--
Bx-editor-cvs mailing list
[email protected]
http://lists.bitflux.ch/cgi-bin/listinfo/bx-editor-cvs