r1508 - branches/bxe_2_0/js
[email protected] Mon, 25 Sep 2006 16:37:34 +0200 (CEST)
| Newsgroups | gmane.editors.bitflux.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: chregu
Date: Mon Sep 25 16:37:33 2006
New Revision: 1508
Modified:
branches/bxe_2_0/js/widget.js
Log:
more helptext
Modified: branches/bxe_2_0/js/widget.js
==============================================================================
--- branches/bxe_2_0/js/widget.js (original)
+++ branches/bxe_2_0/js/widget.js Mon Sep 25 16:37:33 2006
@@ -173,6 +173,7 @@
function Widget_MenuItem(label, action, helptext) {
this.node = this.initNode("div","MenuItem");
this.node.style.display = "block";
+
if (helptext) {
this.node.setAttribute("title", helptext);
}
@@ -826,11 +827,16 @@
for (i = 0; i < ac.length; i++) {
if (ac[i].nodeType != 3 && !ac[i].vdom.bxeDontshow ) { // && !bxe_config.dontShowInContext[ac[i].namespaceURI + ":" +ac[i].localName]
if (i == 0 || ac[i].vdom != ac[i-1].vdom) {
+ if (ac[i].vdom.bxeHelptext) {
+ _helptext = ac[i].vdom.bxeHelptext;
+ } else {
+ _helptext = false;
+ }
var menui = this.addMenuItem(ac[i].vdom.bxeName.replace(/ /g,STRING_NBSP), function(e) {
var widget = e.currentTarget.Widget;
eDOMEventCall("appendNode",document,{"appendToNode": widget.AppendToNode, "localName":widget.InsertLocalName,"namespaceURI":widget.InsertNamespaceURI})
- });
+ }, _helptext);
menui.InsertLocalName = ac[i].localName;
menui.InsertNamespaceURI = ac[i].namespaceURI;
menui.AppendToNode = node.XMLNode;
--
Bx-editor-cvs mailing list
[email protected]
http://lists.bitflux.ch/cgi-bin/listinfo/bx-editor-cvs