diff options
author | Nina Vyedin <nina.vyedin@gmail.com> | 2013-03-05 07:15:45 +0400 |
---|---|---|
committer | Nina Vyedin <nina.vyedin@gmail.com> | 2013-03-05 07:58:45 +0400 |
commit | 5f262d5f54a85e68e0dc9843afea9b68ee783be1 (patch) | |
tree | 5ed2eb97b8fc0952fb73702e6d4a26a0c7cc85e0 /webdoc | |
parent | 21aba18902c48bff94f7ae2c4cd0741c534ca2c0 (diff) |
[webdoc] edit the tree javascript code to include the tooltip
Diffstat (limited to 'webdoc')
-rwxr-xr-x | webdoc/plugins/sidebar-plugin/dependencies/ptree/tree.js | 13 |
1 files changed, 12 insertions, 1 deletions
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; } |