r1599 - in branches/bxe_2_0: js mozile
[email protected] Fri, 3 Nov 2006 08:12:24 +0100 (CET)
| Newsgroups | gmane.editors.bitflux.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: chregu
Date: Fri Nov 3 08:12:23 2006
New Revision: 1599
Modified:
branches/bxe_2_0/js/widget.js
branches/bxe_2_0/mozile/mozCE.js
Log:
fix 303
sonderzeichen einfuegen knallt
Modified: branches/bxe_2_0/js/widget.js
==============================================================================
--- branches/bxe_2_0/js/widget.js (original)
+++ branches/bxe_2_0/js/widget.js Fri Nov 3 08:12:23 2006
@@ -144,14 +144,15 @@
}
-Widget_MenuPopup.prototype.draw = function() {
+Widget_MenuPopup.prototype.draw = function(noHideOnClick) {
var glob = mozilla.getWidgetGlobals();
- glob.addHideOnClick(this);
+ //if (!noHideOnClick) {
+ glob.addHideOnClick(this);
+ //}
this.node.style.display = this.Display;
this.fixOffscreenPosition()
-
}
Widget_MenuPopup.prototype.addSeparator = function (title) {
@@ -641,8 +642,9 @@
if (node.nodeType == Node.TEXT_NODE) {
node = node.parentNode;
}
-
- if (this.lastDefaultContent != node && node.getAttribute("__bxe_defaultcontent") == "true" ) {
+ // not sure anymore, why we had the this.lastDefaultContent stuff..
+ //if (this.lastDefaultContent != node && node.getAttribute("__bxe_defaultcontent") == "true" ) {
+ if ( node.getAttribute("__bxe_defaultcontent") == "true" ) {
if (node.edited) {
node.removeAttribute("__bxe_defaultcontent");
node.XMLNode._node.removeAttribute("__bxe_defaultcontent");
@@ -759,7 +761,7 @@
menui.AppendToNode = node;
}
}
- this.Popup.draw();
+ this.Popup.draw(true);
this.Popup._node = node;
}
Modified: branches/bxe_2_0/mozile/mozCE.js
==============================================================================
--- branches/bxe_2_0/mozile/mozCE.js (original)
+++ branches/bxe_2_0/mozile/mozCE.js Fri Nov 3 08:12:23 2006
@@ -671,6 +671,9 @@
_parx.removeChild(_parx.firstChild);
_parx.appendChild(_parx.ownerDocument.createTextNode(" "));
_parx.removeAttribute("__bxe_defaultcontent");
+ if (this.anchorNode.length > 0) {
+ this.anchorNode.nodeValue = " ";
+ }
}
} catch (e) {
alert(e);
--
Bx-editor-cvs mailing list
[email protected]
http://lists.bitflux.ch/cgi-bin/listinfo/bx-editor-cvs