display the text as well as the description in the tooltip. cap-demo
authorhamidouk
Mon, 05 Dec 2011 15:53:49 +0100
branchcap-demo
changeset 410 de8fdd68930f
parent 409 aa08a47b3dbb
child 411 d5d6e98a95d3
display the text as well as the description in the tooltip.
src/js/widgets/polemicViewer.js
--- a/src/js/widgets/polemicViewer.js	Mon Dec 05 15:53:30 2011 +0100
+++ b/src/js/widgets/polemicViewer.js	Mon Dec 05 15:53:49 2011 +0100
@@ -293,7 +293,7 @@
 
                   e.mouseover(function(element) { return function (event) {
                         // event.clientX and event.clientY are to raphael what event.pageX and pageY are to jquery.                        
-                        self.TooltipWidget.show.call(self.TooltipWidget, element.description, element.attr("fill"), event.clientX - 106, event.clientY - 160);
+                        self.TooltipWidget.show.call(self.TooltipWidget, e.title + " - " + element.description, element.attr("fill"), event.clientX - 106, event.clientY - 160);
                         element.displayed = true;
                   }}(e)).mouseout(function(element) { return function () {                          
                           self.TooltipWidget.hide.call(self.TooltipWidget);