r1307 - branches/bxe_2_0/js

[email protected]
Newsgroups gmane.editors.bitflux.cvs
Message-ID <[email protected]>
Author: chregu
Date: Tue May 24 15:31:16 2005
New Revision: 1307

Modified:
   branches/bxe_2_0/js/bxeXMLNode.js
   branches/bxe_2_0/js/widget.js
Log:
fix for http://bugs.bitflux.ch/cgi-bin/bugzilla/show_bug.cgi?id=763
attrobutes should not be editable, if there's a selector

Modified: branches/bxe_2_0/js/bxeXMLNode.js
==============================================================================
--- branches/bxe_2_0/js/bxeXMLNode.js	(original)
+++ branches/bxe_2_0/js/bxeXMLNode.js	Tue May 24 15:31:16 2005
@@ -59,10 +59,14 @@
 	"firstChild",
 	function()
 	{
-		
 		if (this._node.firstChild) {
-			if (!this._node.firstChild.XMLNode) {
+			if (!this._node.firstChild.XMLNode ) {
+				try {
 				this._node.firstChild.XMLNode = this._node.firstChild.getXMLNode();
+				} catch (e) {
+					//bxe_catch_alert(e);
+					BX_debug(this._node.firstChild);
+				}
 			}
 			return this._node.firstChild.XMLNode;
 		} else {
@@ -341,7 +345,6 @@
 		window.bxe_lastNode = this;
 		var pop = window.open(this.vdom.bxeOnnew,"foobar","width=600,height=600,resizable=yes,scrollbars=yes");
 		pop.focus();
-		
 		return true;
 	}
 	if (ret) {
@@ -352,6 +355,11 @@
 	return false;
 }
 
+function alertFoo() {
+		dump('HIIIIIIT' + "\n");
+}
+	
+
 XMLNodeElement.prototype.setContent = function (text, autocreate) {
 	this.removeAllChildren();
 	var mmmh = bxe_config.xmldoc.createTextNode(text);

Modified: branches/bxe_2_0/js/widget.js
==============================================================================
--- branches/bxe_2_0/js/widget.js	(original)
+++ branches/bxe_2_0/js/widget.js	Tue May 24 15:31:16 2005
@@ -985,6 +985,7 @@
 		case "selectorPopupFunction":
 			var td = this.addFormEntry(name, description);
 			var inputfield = document.createElement("input");
+			inputfield.setAttribute("disabled","disabled");
 			inputfield.value = value;
 			inputfield.name = name;
 			td.appendChild(inputfield);
-- 
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.