From 5f262d5f54a85e68e0dc9843afea9b68ee783be1 Mon Sep 17 00:00:00 2001 From: Nina Vyedin Date: Mon, 4 Mar 2013 22:15:45 -0500 Subject: [webdoc] edit the tree javascript code to include the tooltip --- webdoc/plugins/sidebar-plugin/dependencies/ptree/tree.js | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'webdoc') diff --git a/webdoc/plugins/sidebar-plugin/dependencies/ptree/tree.js b/webdoc/plugins/sidebar-plugin/dependencies/ptree/tree.js index c352c7ed..3ee03efc 100755 --- a/webdoc/plugins/sidebar-plugin/dependencies/ptree/tree.js +++ b/webdoc/plugins/sidebar-plugin/dependencies/ptree/tree.js @@ -23,6 +23,14 @@ function PTree () this.nImageHeight = 23; this.onClickCallback = null; + + this.Tooltip = function() { + $('.tree-label').tooltip({ + selector: 'a[rel=tooltip]', + placement: 'right' + }); + } + this.CreateItemFromXML = function (oNode, fLast, eltParent) { var strText = oNode.getAttribute ("text"); @@ -103,6 +111,8 @@ function PTree () else eltD.href = this.strActionBase + strAction; eltD.title = strText; + eltD.rel = "tooltip"; + //eltD.data-placement = "left"; if (strTarget) eltD.target = strTarget; else if (this.strTargetDefault) @@ -144,7 +154,8 @@ function PTree () eltParent.appendChild (eltDiv); else this.SelectNode (eltDiv); - + + _this.Tooltip(); return eltDiv; } -- cgit v1.2.3